effect-tree
    Preparing search index...

    Interface EdgeMap<A>

    An indexed edge list. We index:

    1. Child node ⇒ parent node
    2. Parent node ⇒ list of child nodes
    3. Set of nodes with no parent node
    interface EdgeMap<A> {
        roots: HashSet<A>;
        toChildren: HashMap<A, A[]>;
        toParent: HashMap<A, A>;
    }

    Type Parameters

    • A
    Index

    Properties

    roots: HashSet<A>

    Index of all tree nodes with no parent.

    toChildren: HashMap<A, A[]>

    Index of all parent tree nodes ⇒ their child tree nodes.

    toParent: HashMap<A, A>

    Index of all tree nodes with parent ⇒ their parent.