Description Usage Arguments Details Author(s)
A function to check the connectivity of a given network.
1 | nt.connect(nt)
|
nt |
A “SpatialLines” or “SpatialLinesDataFrame” object. |
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.
Binbin Lu lubinbin220@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.