View source: R/genRandomSpanningTrees.R
genRandomSpanningTrees | R Documentation |
Generate a set of random spanning trees of a graph given the number of nodes of the problem instance.
genRandomSpanningTrees(m, n, type = "pruefer", simplify = TRUE)
m |
[ |
n |
[ |
type |
[ |
simplify |
[ |
[list
| matrix
] Result type depends on simplify
and type
.
genRandomSpanningTrees(3, 10)
genRandomSpanningTrees(3, 10, simplify = FALSE)
genRandomSpanningTrees(3, 10, type = "edgelist")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.