SpatialGraph: Create a SpatialGraph object

View source: R/SpatialGraph-methods.R

SpatialGraphR Documentation

Create a SpatialGraph object

Description

A SpatialGraph object is created

Usage

SpatialGraph(v, e, dist = NULL, path = NULL)

Arguments

v

SpatialPointsDataFrame

e

SpatialLinesDataFrame

dist

along-network (symmetric) distance matrix

path

matrix of lists with paths corresponding to dist. While distances between vertex couples are symmetric, the path matrix is not symmetric as individual path to from source vertex to destination vertex. Each list in the matrix has two S3 components (v,e) describing vertices (including bounds) and edges along the path. Thus it is always one less edge than then number of vertices in the path

Value

SpatialGraph returns an object of class SpatialGraph-class


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