shortestPath {spatgraphs} | R Documentation |
shortest path on the graph
Description
Djikstra's algorithm
Usage
shortestPath(i, j, g, x = NULL, dbg = FALSE)
Arguments
i |
index from |
j |
index to |
g |
sg object |
x |
optional point pattern from which g was computed |
dbg |
verbose |
[Package spatgraphs version 3.4 Index]