Compute the extremal nodes of an edge inside a graph.
[I,J] = NL_G_Edge2Nodes(G,E)
Graph.
Edge index.
Starting node.
Ending node.
NL_G_Edge2Nodes computes the extremal nodes I and J of the edge with index E inside the graph G.
[path]=NARVAL_F_NARVALPath();//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 e=3;//edge index [nd,nf]=NL_G_Edge2Nodes(g,e)//application of NL_G_Edge2Nodes