<< NARVAL_G_Edge2Nodes NARVAL NARVAL_G_EdgeLength >>

NARVAL >> NARVAL > NARVAL_G_EdgeDataFields

NARVAL_G_EdgeDataFields

Return the most important edge data fields of a graph.

Calling Sequence

[e_head,e_tail,e_color,e_width,e_length,e_weight,e_number]=NARVAL_G_EdgeDataFields(g)

Parameters

g :

network graph.

e_head :

starting node of each edge.

e_tail :

ending node of each edge.

e_color :

edges color.

e_width :

edges width.

e_length :

edges length.

e_weight :

edges weight.

e_number :

number of edges.

Description

NARVAL_G_EdgeDataFields returns the most important edges parameter of the graph g. e_head (respectivelly e_tail) is a vector composed by the starting (respectivelly ending) node of each edge. Visualization parameters are composed by the edges color e_color and the edges width e_width. e_length (respectivelly e_weight) stores the length (respectivelly the weight) of each edge. e_number provides the number of edges of the graph.

Examples

nn=150;//network size
L=1000;//network square area side
dmax=100;//Locality radius
[g]=NARVAL_T_LocalityConnex(nn,L,dmax);//generation of a topology in respect with the Locality method
ind=1;
[f]=NARVAL_G_ShowGraph(g,ind);
[e_head,e_tail,e_color,e_width,e_length,e_weight,e_number]=NARVAL_G_EdgeDataFields(g);//application of NARVAL_G_EdgeDataFields
e_head
e_tail
e_color
e_width
e_length
e_weight
e_number

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_Edge2Nodes NARVAL NARVAL_G_EdgeLength >>