<< NARVAL_G_NodeNumber NARVAL NARVAL_G_Nodes2Path >>

NARVAL >> NARVAL > NARVAL_G_Nodes2Edge

NARVAL_G_Nodes2Edge

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 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);
nd=1;
nf=4;
[e]=NARVAL_G_Nodes2Edge(g,nd,nf);//application of NARVAL_G_Nodes2Edge
e

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_NodeNumber NARVAL NARVAL_G_Nodes2Path >>