TreeGraphFactoryExtension<V, E> extension
Creates m-ary trees (also known as n-ary, k-ary or k-way tree) in which each node has no more than m children.
- on
-
- GraphFactory<
V, E>
- GraphFactory<
Methods
-
completeTree(
{required int vertexCount, int arity = 2}) → Graph< V, E> -
Available on GraphFactory<
Creates a complete tree withV, E> , provided by the TreeGraphFactoryExtension extensionvertexCount
nodes and a branching factor ofarity
. By definition it is completely filled on every level except for the last one; where all the nodes are as far left as possible. -
prefectTree(
{required int height, int arity = 2}) → Graph< V, E> -
Available on GraphFactory<
Creates a perfectly balanced tree ofV, E> , provided by the TreeGraphFactoryExtension extensionheight
and a branching factor ofarity
. In the resulting tree all leaf nodes are at the same depth.