Return the edge index between two extremal nodes of a graph.
[E] = NL_G_Nodes2Edge(G,I,J)
Graph.
Starting node.
Ending node.
Edge index.
NL_G_Edge2Nodes returns the edge index E between the two extremal nodes I and J of the graph G.
[path]=NL_F_NLPath();//path to NARVAL module path=path+'/demos/';//folder path name='topo_20.topo';//file name Lxmin=100; Lxmax=900; Lymin=100; Lymax=900; [g]=NL_G_LoadGraphNE(path,name,Lxmin,Lxmax,Lymin,Lymax);//graph loading ind=1;//window index f=NL_G_ShowGraphNE(g,ind);//graph visualization nd=1;//starting node nf=4;//ending node [e]=NL_G_Nodes2Edge(g,nd,nf)//application of NL_G_Nodes2Edge