shortestPath_legacy: shortest path on the graph

View source: R/shortestPath_old.R

shortestPath_legacyR Documentation

shortest path on the graph

Description

Djikstra's algorithm

Usage

shortestPath_legacy(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

Details

If x is given, we use the point-to-point distances as edge weights. Otherwise, each edge has weight 1.


antiphon/spatgraphs documentation built on Feb. 23, 2023, 7:14 a.m.