Description Usage Arguments Value Examples
This function plots the entire network and shortest path between two points. The parameter dijkstraPath is obtained by the function dijkstra, in which one has to specify the initial and end node of the path.
1 | plotDijkstra(edgeMatrix, coordMatrix, dijkstraPath)
|
edgeMatrix |
A matrix containing zeros and ones if an edge between two vertexes is absent or not |
coordMatrix |
A data frame containing the x and y coordinates of each vertex of the network |
dijkstraPath |
A vector of numbers corresponding to the vertexes of the shortest path through the network |
Function outputs a two-dimensional plot
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.