powered by
prunemst(edges, only.nodes = TRUE)
only.nodes=FALSE
only.nodes=TRUE
mstree
e <- matrix(c(2,3, 1,2, 3,4, 4,5), ncol=2, byrow=TRUE) e prunemst(e) prunemst(e, only.nodes=FALSE)
Run the code above in your browser using DataLab