<< NL_G_Eccentricity NL_G: Graph NL_G_EdgeDataFields >>

NARVAL >> NL_G: Graph > NL_G_Edge2Nodes

NL_G_Edge2Nodes

Compute the extremal nodes of an edge inside a graph.

Calling Sequence

[I,J] = NL_G_Edge2Nodes(G,E)

Arguments

G :

Graph.

E :

Edge index.

I :

Starting node.

J :

Ending node.

Description

NL_G_Edge2Nodes computes the extremal nodes I and J 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]=NL_G_LoadGraphNE(path,name,Lxmin,Lxmax,Lymin,Lymax);//graph loading
ind=1;//window index
f=NL_G_ShowGraphNE(g,ind);//graph visualization
e=3;//edge index
[nd,nf]=NL_G_Edge2Nodes(g,e)//application of NL_G_Edge2Nodes

Report an issue
<< NL_G_Eccentricity NL_G: Graph NL_G_EdgeDataFields >>