Simplifies a sfnetwork
SimplifyNetwork.Rd
This function removes extraneous nodes and small segments from a network that are often leftover after other operations
Usage
SimplifyNetwork(
network,
root,
preserve,
preserve.type,
tolerance = 1000,
tolerance2 = 1,
makeplot = T
)
Arguments
- network
A sfnetwork
- root
an optional sf POINT or other input capatible with RootNetwork; useful if the root gets removed
- preserve
an optional input that specifies nodes or segments that should not be altered
- preserve.type
either "nodes" or "edges", indicating which component preserve is referencing
- tolerance
A integer, segments with no connections below this size are removed
- tolerance2
A fine scale tolerance for resolving overlapping edges; ought to be small
- makeplot
should the funciton output a plot showing before/after versions of the network