weightgraph - Transform a graph into a weighted one
Transform a graph into a weighted graph based on the Euclidian distance between links extreme nodes. These weights are used later for the performance of shortest paths.
[g]=ntg_locality(100,1000,150); show_graph(g); [path1]=dijkstra(g,'length',1,30); [g]=weightgraph(g); [path2]=dijkstra(g,'length',1,30);