<< 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 and 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);//graph loading
ind=1;//window index
f=NARVAL_G_ShowNodesEdges(g,ind);//graph visualization
e=3;//edge index
[nd,nf]=NARVAL_G_Edge2Nodes(g,e);//application of NARVAL_G_Edge2Nodes 
nd 
nf

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_EccentricityERT NARVAL NARVAL_G_EdgeDataFields >>