nt.connect: Check the connectivity of a given network

Description Usage Arguments Details Author(s)

View source: R/nt.connect.r

Description

A function to check the connectivity of a given network.

Usage

1

Arguments

nt

A “SpatialLines” or “SpatialLinesDataFrame” object.

Details

In this function, all the nodes are traversed, and classified dynamically via a rule, that any pair of different nodes fall into a same category if they could be reached from each other. A map will be plotted spontaneously with differet categories (i.e. self-connected parts) in distinct colors. Finally, the self-connected part with the most nodes will be returned as a new “SpatialLinesDataFrame” object.

Author(s)

Binbin Lu lubinbin220@gmail.com


shp2graph documentation built on May 1, 2019, 9:45 p.m.