shortestPath: shortest path on the graph

View source: R/shortestPath.R

shortestPathR 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


spatgraphs documentation built on Feb. 16, 2023, 8:49 p.m.