Return the edge index between two extremal nodes inside a graph.
Calling Sequence
[e]=NARVAL_G_Nodes2Edge(g,nd,nf)
Parameters
g :
graph.
nd :
starting node .
nf :
ending node.
e :
edge index.
Description
NARVAL_G_Edge2Nodes returns the edge index e between two extremal nodes nd-nf inside the graph g.
Examples
[path]=NARVAL_F_NARVALPath();//path to NARVAL modulepath=path+'/demos/';//folder pathname='topo_20.topo';//file nameLxmin=100;Lxmax=900;Lymin=100;Lymax=900;[g]=NARVAL_T_UploadTopology(path,name,Lxmin,Lxmax,Lymin,Lymax);ind=1;f=NARVAL_G_ShowGraph(g,ind);nd=1;nf=4;[e]=NARVAL_G_Nodes2Edge(g,nd,nf);//application of NARVAL_G_Nodes2Edgee