distSGv: Calculate the distance slot in a SpatialGraph

View source: R/distSGv.R

distSGvR Documentation

Calculate the distance slot in a SpatialGraph

Description

Calculate the distance slot in a SpatialGraph. This is done via a call to the library igraph, which does the calculation. Distances are undirected.

Usage

 distSGv(SG, getpath = FALSE)

Arguments

SG

SpatialGraph

getpath

boolean. Whether to calculate the SG@path slot

Value

A SpatialGraph with the slot dist (and path if requested) recalculated


SpatialGraph documentation built on Sept. 28, 2023, 5:08 p.m.