View source: R/genRandomSpanningTrees.R
genRandomSpanningTree | R Documentation |
Generate a random spanning tree of a graph given the number of nodes of the problem instance.
genRandomSpanningTree(n, type = "pruefer")
n |
[ |
type |
[ |
[integer
| matrix(2, n)
] Return type depends on type
.
genRandomSpanningTree(10)
genRandomSpanningTree(10, type = "edgelist")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.