<< 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 and nf inside the graph g.

nd (respectivelly nf) is represented by e_head (respectivelly e_tail).

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);//graph loading
ind=1;//window index
f=NARVAL_G_ShowNodesEdges(g,ind);//graph visualization
nd=1;//starting node
nf=4;//ending node
[e]=NARVAL_G_Nodes2Edge(g,nd,nf);//application of NARVAL_G_Nodes2Edge
e

Authors

Foued Melakessou

Contact

Dr. Foued Melakessou

Research Associate

Interdisciplinary Centre for Security, Reliability and Trust

Room F106

University of Luxembourg

6, rue Coudenhove Kalergi

L-1359 Luxembourg-Kirchberg

E-mail: foued.melakessou@uni.lu

Tel: (+352) 46 66 44 5346

Home Page


<< NARVAL_G_NodeNumber NARVAL NARVAL_G_Nodes2Path >>