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