shortest_path | R Documentation |
Find shortest path between a pair of nodes in the network.
shortest_path(network, from, to, weights = "weight")
network |
A spatial network object |
from |
Start node |
to |
End node |
weights |
Name of the column in the network edge table from where to take the weigths |
A simple feature geometry
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.