modifypathweight - Link weight modification
Modify the path weight of the connection route between nodes i and j. The network is described by the graph g.
D=300; L=1000; n=30; i=1; j=15; [g]=ntg_locality(D,L,n); g=weightgraph(g); [table_routage_1]=routingdijkstra(g); ind=(i-1)*n+j; l1=table_routage_1(ind,1); c1=table_routage_1(ind,2:2+l1-1); edgecolor=1*ones(g.tail); [edgecolor]=emphasizeroute(l1,c1,g,edgecolor,5); g=modifypathweight(g,i,j,L); [table_routage_2]=routingdijkstra(g); l2=table_routage_2(ind,1); c2=table_routage_2(ind,2:2+l2-1); [edgecolor]=emphasizeroute(l2,c2,g,edgecolor,2); g1=g; g1('edge_color')=edgecolor; show_graph(g1);