Weight a network graph.
[g]=EdgeLength(g)
network graph.
EdgeLength transforms the network graph g into a weighted graph where the Euclidian distance between the extreme nodes of edges is used. These weights are stored in g.edges.data.length. They are needed during the paths performance between network entities.