<< NL_G_EdgesLength NL_G: Graph NL_G_ForceBasedAlgo >>

NARVAL >> NL_G: Graph > NL_G_EdgesOfNode

NL_G_EdgesOfNode

Return the set of edges connected to a node inside a graph.

Calling Sequence

[E] = NL_G_EdgesOfNode(G,I)

Arguments

G :

Graph.

I :

Node index.

E :

List of edges.

Description

NL_G_EdgesOfNode returns the set of edges E connected to the node I inside the graph G.

Examples

[path]=NL_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
i=3;//node index
[e]=NL_G_EdgesOfNode(g,i)//application of NL_G_EdgesOfNode

Dependency

NL_G_NodeNeighbors, NL_G_Nodes2Edge

Report an issue
<< NL_G_EdgesLength NL_G: Graph NL_G_ForceBasedAlgo >>