Display and emphasize a path on a graph.
[go] = NARVAL_R_ShowPath(p,g,ec,eb,nc,nb,i)
path.
network graph.
edge color.
edge width.
node color.
node border.
window index.
output network graph.
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.
[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 | ![]() | ![]() |
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