Metanet

Issue 177: The ta2lpd function is already available in Scilab.

Reported by Michael Baudin, Dec 1, 2010

The ta2lpd function is already available in Scilab.

See the m6ta2lpd gateway :

http://forge.scilab.org/index.php/p/metanet/source/tree/master/sci_ga
teway/fortran/sci_m6ta2lpd.f

It is now available in Scilab, as ta2lpd gateway :

http://gitweb.scilab.org/?p=scilab.git;a=blob;f=scilab/modules/sparse
/sci_gateway/fortran/sci_ta2lpd.f;h=e129443002e1b7c6c938a409931a1fad0
f1322c6;hb=158003f7976873e3d36c2502cac0f2f50e1a08d9

This was done to make sp2adj work, after the bug report :

http://bugzilla.scilab.org/show_bug.cgi?id=6412

m6ta2lpd should be removed from Metanet.

Comment 1 by Michael Baudin, Dec 1, 2010

Caution: ta2lpd was moved but not ta2plu, which is still in Metanet, 
but not in Scilab :

http://forge.scilab.org/index.php/p/metanet/source/tree/master/sci_ga
teway/fortran/sci_m6ta2lpu.f

But the purpose of this ta2plu function is unclear: is it is not 
documented.

Comment 2 by Michael Baudin, Dec 1, 2010

There is no problem with ta2lpu. This function is used only inside 
Metanet.
The following is the complete list of all functions in Scilab 5.1.1 
scripts using ta2lpu:

/scilab-5.1.1/modules/metanet/macros/graph_tools/adj_lists.sci
	50:     [lp,la,ln]=m6ta2lpu(tail,head,n+1,n,2*ma)
/scilab-5.1.1/modules/metanet/macros/graph_tools/articul.sci
	28:   [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,2*ma)
/scilab-5.1.1/modules/metanet/macros/graph_tools/connex.sci
	25:     [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,2*ma)
/scilab-5.1.1/modules/metanet/macros/graph_tools/find_path.sci
	29:     [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,2*ma)
/scilab-5.1.1/modules/metanet/macros/graph_tools/is_connex.sci
	26:     [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,2*ma)
/scilab-5.1.1/modules/metanet/macros/graph_tools/max_cap_path.sci
	28:     [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,2*ma)
/scilab-5.1.1/modules/metanet/macros/graph_tools/min_lcost_cflow.sci

	56:     [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,2*ma)
/scilab-5.1.1/modules/metanet/macros/graph_tools/min_lcost_flow1.sci

	54:   [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,2*ma)
/scilab-5.1.1/modules/metanet/macros/graph_tools/min_qcost_flow.sci
	73:   [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,2*ma)
/scilab-5.1.1/modules/metanet/macros/graph_tools/min_weight_tree.sci

	36:     [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,2*ma)
/scilab-5.1.1/modules/metanet/macros/graph_tools/nodes_2_path.sci
	31:       [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,2*ma)
/scilab-5.1.1/modules/metanet/macros/graph_tools/path_2_nodes.sci
	28:       [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,2*ma)
/scilab-5.1.1/modules/metanet/macros/graph_tools/perfect_match.sci
	29:   [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,m2)
/scilab-5.1.1/modules/metanet/macros/graph_tools/shortest_path.sci
	37:     [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,2*ma)
/scilab-5.1.1/modules/metanet/macros/graph_tools/strong_connex.sci
	22:     [lp,la,ln]=m6ta2lpu(g.edges.tail,g.edges.head,n+1,n,2*ma)

Comment 3 by Michael Baudin, Dec 1, 2010

The same issue was reported in Bugzilla:

http://bugzilla.scilab.org/show_bug.cgi?id=6552

Comment 4 by Sylvestre Ledru, Mar 17, 2011

Could you sum up everything ? 
I am kind of lost...

Comment 5 by Michael Baudin, Mar 18, 2011

* m6ta2lpd is both in Metanet and Scilab. It should be removed from 
Metanet.
 * m6ta2lpu is in Metanet and not in Scilab. It should be moved to 
Scilab, and removed from Metanet.

Comment 6 by Michael Baudin, Oct 23, 2013

This is an important bug, which is related to the problems of the 
"markov" functions in Scilab itself. This is why I tag 
this bug with a higher priority.
Labels: Priority:High Priority:Medium

Comment 7 by Cheryl Hughes, May 29, 2020

try to assign a value to a single entry
 h.node_name(1)=2
//or
 h.node_name(1)='a'
Expected result:
 change of value
Actual result:
Message: 'Undefined operation for the given operands. check or 
https://resume-examples.com
define function %l_6 for overloading.

Created: 10 years 10 months ago by Michael Baudin

Updated: 1 year 4 months ago

Status: New

Followed by: 2 persons

Labels:
Type:Defect
Priority:High

This issue is related to
761 - Stack error on find_path