Package com.jgalgo

Interface LowestCommonAncestorDynamic.Node

    • Method Detail

      • getParent

        LowestCommonAncestorDynamic.Node getParent()
        Get the parent node of this node.
        Returns:
        the parent of this node or null if this node is the root of the tree.
      • getNodeData

        <D> D getNodeData()
        Get the user data of this node.

        Note that the conversion of the data stored in the implementation to the user type is unsafe.

        Type Parameters:
        D - the data type
        Returns:
        the user data of this node
      • setNodeData

        void setNodeData​(Object data)
        Set the user data of this node.
        Parameters:
        data - new value for this node