<< NL_G_Edge2Nodes NL_G: Graph NL_G_EdgeNumber >>

NARVAL >> NL_G: Graph > NL_G_EdgeDataFields

NL_G_EdgeDataFields

Extract the most important edge data fields of a graph.

Calling Sequence

[Eh,Et,Ec,Ew,El,Ewt,En] = NL_G_EdgeDataFields(G)

Arguments

G :

Graph.

:

Starting node of each edge.

:

Ending node of each edge.

:

Color of each edge.

:

Width of each edge.

:

Length of each edge.

:

Weight of each edge.

:

Number of edges.

Description

NL_G_EdgeDataFields returns the most important edges parameters of the graph G. (respectivelly ) is composed by the starting (respectivelly ending) node of each edge. Visualization parameters are composed by the edges color and the edges width . (respectivelly ) stores the length (respectivelly the weight) of each edge. provides the number of edges of the graph.

Examples

n=150;//network size
L=1000;//network square area side
dmax=100;//Locality radius
[g]=NL_T_LocalityConnex(n,L,dmax);//generation of a topology in respect with the Locality method
ind=1;//window index
[f]=NL_G_ShowGraphE(g,ind);//graph visualization
[e_head,e_tail,e_color,e_width,e_length,e_weight,e_number]=NL_G_EdgeDataFields(g)//application of NL_G_EdgeDataFields

Report an issue
<< NL_G_Edge2Nodes NL_G: Graph NL_G_EdgeNumber >>