<< NARVAL_G_EccentricityERT NARVAL NARVAL_G_EdgeDataFields >>

NARVAL >> NARVAL > NARVAL_G_Edge2Nodes

NARVAL_G_Edge2Nodes

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 module
path=path+'/demos/';//folder path
name='topo_20.topo';//file name
Lxmin=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 
nd 
nf

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_EccentricityERT NARVAL NARVAL_G_EdgeDataFields >>