![]() |
Quetzal-CoaTL
The Coalescence Template Library
|
Coalescence k-ary Trees classes are similar to Binary Trees, but provide an interface guaranteeing that each vertex \(v\) has exactly
The graph structure is bidirectional and allows to model a forest of disconnected trees. That is, if a vertex has no predecessor, then it's either a root (if it has 2 or more successors) or an isolated vertex (if it has no successor).
Users will encounter this type of tree when returning from coalescence multiple mergers, or if they simply want to build and manipulate graphs that do not make strong assumptions on the tree structure.
Coalescence K-ary Trees can store an additional arbitrary type of information (called a Property Class) along their vertices or edges: if the user decides to do so, the tree class interface adapts to offer ways to manipulate this information.
There are logically 4 different classes (equivalently interfaces) resulting from this:
VertexProperty
on each vertex: EdgeProperty
on each edge: VertexProperty
and EdgeProperty
information :Usage examples are described in their respective class documentation.