distSGv {SpatialGraph}R 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


[Package SpatialGraph version 1.0-4 Index]