<< NARVAL_G_OriginalGraph NARVAL NARVAL_G_PeripheryERT >>

NARVAL >> NARVAL > NARVAL_G_Path2Nodes

NARVAL_G_Path2Nodes

Transform a list of links into the corresponding list of nodes.

Calling Sequence

[ns]=NARVAL_G_Path2Nodes(p,g)

Parameters

p :

list of links.

g :

network graph.

ns :

list of nodes.

Description

NARVAL_G_Path2Nodes transforms a list of links p of the graph g. If there is a path following each successive links p, then the corresponding vector of successive nodes ns is generated. Otherwise ns is empty.

Examples

name='network';
node_number=3;
tail=[2 3 3];
head=[1 1 2];
node_x=[100 700 200];
node_y=[200 800 600];
[g]=NARVAL_G_MakeGraph(name,node_number,tail,head,node_x,node_y);//generation of a topology with 3 nodes
p=[1 2];
[ns]=NARVAL_G_Path2Nodes(p,g);//application of NARVAL_G_Path2Nodes
ns

Dependency

NARVAL_F_RVector

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_G_OriginalGraph NARVAL NARVAL_G_PeripheryERT >>