Last chance! 50% off unlimited learning
Sale ends in
prunemst(edges, only.nodes = TRUE)
only.nodes=FALSE
, return a edges and nodes
of each MST resulted. If only.nodes=TRUE
, return a two sets of
nodes. Defalt is TRUEonly.nodes=TRUE
each element is a
vector of nodes. If only.nodes=FALSE
each element is a list with
nodes and edges.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