<< NL_G_EdgeNumber NL_G: Graph NL_G_EdgesOfNode >>

NARVAL >> NL_G: Graph > NL_G_EdgesLength

NL_G_EdgesLength

Perform the length of each edge of a graph.

Calling Sequence

[L] = NL_G_EdgesLength(X,Y,H,T)

Arguments

X :

X-coordinates of nodes.

Y :

Y-coordinates of nodes.

H :

Head vector of edges.

T :

Head vector of edges.

L :

Length vector of edges.

Description

NL_G_EdgesLength performs the Euclidian distance vector L of all graph edges defined by and (). These weights are used during the paths performance between graph entities.

Examples

name='network';// graph name
n=3;//graph parameters
tail=[2 3 3];
head=[1 1 2];
node_x=[100 700 200];
node_y=[200 800 600];
[g]=NL_G_MakeGraph(name,n,tail,head,node_x,node_y);//creation of a graph
[l]=NL_G_EdgesLength(g.node_x,g.node_y,g.head,g.tail)//application of NARVAL_G_EdgesLength

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