DigraphGeneratorRootedInTree Method |
Returns a random rooted-in tree on V vertices.
A rooted in-tree is an oriented tree in which there is a single vertex
reachable from every other vertex.
The tree returned is not chosen uniformly at random among all such trees.
Namespace: Algs4NetAssembly: Algs4Net (in Algs4Net.dll) Version: 1.0.0.0 (1.0.0.0)
Syntaxpublic static Digraph RootedInTree(
int V
)
Parameters
- V
- Type: SystemInt32
the number of vertices
Return Value
Type:
Digrapha random rooted-in tree on
V vertices
See Also