VisitationTree

- Documented
This commit is contained in:
Tristan B. Velloza Kildaire 2024-04-27 16:25:47 +02:00
parent 943a16beb6
commit 926598086d
1 changed files with 21 additions and 0 deletions

View File

@ -872,6 +872,27 @@ unittest
assert(!treeOfStrings.removeNode(subtree_1));
}
/**
* A kind-of a tree which has the ability
* to linearize all of its nodes which
* results in performing a depth first
* search resulting in the collection of
* all nodes into a single array with
* elements on the left hand side being
* the most leafiest (and left-to-right
* on the same depth are in said order).
*
* It also marks a node as visited on
* entry to it via the dfs call to it.
*
* When dfs is performed, a child node
* is only recursed upon if it has not
* yet been visited.
*
* With all this, it means a graph of
* relations can be flattened into an
* array.
*/
public class VisitationTree(T) : Tree!(T)
{
private bool visisted;