<< NARVAL_R_ShortestRT NARVAL NARVAL_R_SinkFlood >>

NARVAL >> NARVAL > NARVAL_R_ShowPath

NARVAL_R_ShowPath

Display and emphasize a path on a graph.

Calling Sequence

[go] = NARVAL_R_ShowPath(p,g,ec,eb,nc,nb,i)

Parameters

p :

path.

g :

network graph.

ec :

edge color.

eb :

edge width.

nc :

node color.

nb :

node border.

i :

window index.

go :

output network graph.

Description

NARVAL_R_ShowPath displays the path p in the graph g. The nodes of the path are plotted with the border nb, the color nc. The edges of the path are displayed with the color ec and the width eb. The graph is plotted within the window i. The output graph is stored in go.

Examples

[path]=NARVAL_F_NARVALPath();//path to NARVAL module
path=path+'/demos/';//folder path
load(path+'topo_100.graph');//loading of the network graph
load(path+'RoutingTables_topo_100.dat','pt','rt1','rt2','rt3','rt4','rt5');//loading of the network routing tables
[Path,Next]=NARVAL_R_FloydWarshall(g);//application of the Floyd-Warshall algorithm
n=length(g.node_x);//network size
[i,j]=NARVAL_F_Random_i_j(n);//generation of extremal connection nodes
[p]=NARVAL_R_FloydWarshallP(Path,Next,i,j);//application of NARVAL_R_FloydWarshallP
ec=5;//edge color
eb=3;//edge border
nc=2;//node color
nb=10;//border default is 5. Nodes belonging to the path are displayed with the border eb.
ind=1;//window index
[g]=NARVAL_R_ShowPath(p,g,ec,eb,nc,nb,ind);//application of NARVAL_R_ShowPath

Dependency

NARVAL_G_Nodes2Path, NARVAL_G_ShowGraph

Authors

Foued Melakessou

Contact

Dr. Foued Melakessou

Research Associate

Interdisciplinary Centre for Security, Reliability and Trust

Room F106

University of Luxembourg

6, rue Coudenhove Kalergi

L-1359 Luxembourg-Kirchberg

E-mail: foued.melakessou@uni.lu

Tel: (+352) 46 66 44 5346

Home Page


<< NARVAL_R_ShortestRT NARVAL NARVAL_R_SinkFlood >>