Learn R Programming

SpatialGraph (version 1.0-4)

distSGv: 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)

Value

A SpatialGraph with the slot dist (and

path if requested) recalculated

Arguments

SG

SpatialGraph

getpath

boolean. Whether to calculate the SG@path slot