Prune a Minimun Spanning Tree
This function deletes a first edge and makes two subsets of edges. Each subset is a Minimun Spanning Treee.
prunemst(edges, only.nodes = TRUE)
edges |
A matrix with two colums with each row is one edge |
only.nodes |
If |
A list of length two. If only.nodes=TRUE
each element is a
vector of nodes. If only.nodes=FALSE
each element is a list with
nodes and edges.
Elias T. Krainski and Renato M. Assuncao
See Also as mstree
e <- matrix(c(2,3, 1,2, 3,4, 4,5), ncol=2, byrow=TRUE) e prunemst(e) prunemst(e, only.nodes=FALSE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.