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


garciapintado/SpatialGraph documentation built on July 29, 2023, 4:39 p.m.