prune_sg | R Documentation |
Prune a graph
prune_sg(g, level = 1, verbose = FALSE)
g |
sg object |
level |
pruning level |
verbose |
verbosity |
Remove edges from a graph by their path connectivity.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.