prune_sg: Prune a graph

Description Usage Arguments Details Examples

View source: R/prune_sg.R

Description

Prune a graph

Usage

1
prune_sg(g, level = 1, verbose = FALSE)

Arguments

g

sg object

level

pruning level

verbose

verbosity

Details

Remove edges from a graph by their path connectivity.

Examples

1
2
3
4
5
x <- matrix(runif(50*2), ncol=2)
g <- spatgraph(x, "MST")
gp <- prune_sg(g, level = 2)
plot(g, x, lty=2)
plot(gp, x, add=TRUE, col=2)

spatgraphs documentation built on July 1, 2020, 5:46 p.m.