<< NL_G_NodeStructure NL_G: Graph NL_G_Nodes2Path >>

NARVAL >> NL_G: Graph > NL_G_Nodes2Edge

NL_G_Nodes2Edge

Return the edge index between two extremal nodes of a graph.

Calling Sequence

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

Arguments

G :

Graph.

I :

Starting node.

J :

Ending node.

E :

Edge index.

Description

NL_G_Edge2Nodes returns the edge index E between the two extremal nodes I and J of the graph G.

Examples

[path]=NL_F_NLPath();//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
nd=1;//starting node
nf=4;//ending node
[e]=NL_G_Nodes2Edge(g,nd,nf)//application of NL_G_Nodes2Edge

Report an issue
<< NL_G_NodeStructure NL_G: Graph NL_G_Nodes2Path >>