<< NARVAL_R_ShortestRT NARVAL NARVAL_R_TBellmanFord >>

NARVAL >> NARVAL > NARVAL_R_ShowPath

NARVAL_R_ShowPath

Display and emphasize a path on a graph.

Calling Sequence

[g]=NARVAL_R_ShowPath(path,g,ec,eb,nc,nb,ind)

Parameters

path :

path.

g :

network graph.

ec :

edge color.

eb :

edge width.

nc :

node color.

nb :

node border.

ind :

window index.

Description

NARVAL_R_ShowPath displays a network path path of the graph g. The path is underlined with colors. The graph is plotted in window ind.

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);
[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;
eb=3;
nc=2;
nb=10;//border default is 5. Nodes belonging to the path are displayed with a border eb.
ind=1;
[g]=NARVAL_R_ShowPath(p,g,ec,eb,nc,nb,ind);//application of NARVAL_R_ShowPath

Dependency

NARVAL_G_Nodes2Path, NARVAL_G_ShowGraph

Author

http://wwwen.uni.lu/interdisciplinary_centre_for_security_reliability_and_trust

Contact

<< NARVAL_R_ShortestRT NARVAL NARVAL_R_TBellmanFord >>