Return the extremal nodes of an edge inside a graph.
Calling Sequence
[nd,nf]=NARVAL_G_Edge2Nodes(g,e)
Parameters
g :
graph.
e :
edge index.
nd :
starting node .
nf :
ending node.
Description
NARVAL_G_Edge2Nodes returns the extremal nodes nd-nf of the edge with index e 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);e=3;//edge index[nd,nf]=NARVAL_G_Edge2Nodes(g,e);//application of NARVAL_G_Edge2Nodes ndnf