Learn R Programming

spatgraphs (version 3.4)

shortestPath: 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