Display and emphasize a path on a graph.
[g]=RoutingShowPath(path,g,ec,eb,nc,nb)
path.
network graph.
edge color.
edge width.
node color.
node border.
RoutingShowPath displays a network path path of the graph g. The path is underlined with colors.
load('./demos/RoutingTables_topo_100_1.dat');//loading of the network routing tables g=load_graph('./demos/topo_100_1.graph');//loading of the network graph [g]=EdgeLength(g); [Path,Next]=RoutingFloydWarshall(g);//application of the Floyd-Warshall algorithm n=length(g.node_x); [i,j]=Random_i_j(n);//generation of extremal connection nodes [p]=RoutingFloydWarshallPath(Path,Next,i,j);//application of RoutingFloydWarshallPath ec=5; eb=3; nc=2; nb=3; [g]=RoutingShowPath(p,g,ec,eb,nc,nb);//application of RoutingShowPath | ![]() | ![]() |