Class NonInrementalDisjointSetStruct

    • Field Detail

      • MEMORY_ESTIMATION

        public static final MemoryEstimation MEMORY_ESTIMATION
        Deprecated.
    • Constructor Detail

      • NonInrementalDisjointSetStruct

        public NonInrementalDisjointSetStruct​(long size,
                                              AllocationTracker tracker)
        Deprecated.
        Initialize the struct with the given size.
        Parameters:
        size - number of elements (maximum node id)
    • Method Detail

      • memoryEstimation

        public static MemoryEstimation memoryEstimation()
        Deprecated.
      • size

        public long size()
        Deprecated.
        Description copied from interface: DisjointSetStruct
        Number of elements stored in the data structure.
        Returns:
        element count
      • find

        public long find​(long nodeId)
        Deprecated.
        Description copied from class: SequentialDisjointSetStruct
        Find set Id of element p. Note that implementations of this method might apply path optimizations while looking for the set id.
        Specified by:
        find in class SequentialDisjointSetStruct
        Parameters:
        nodeId - the element in the set we are looking for
        Returns:
        an id of the set it belongs to
      • setIdOf

        public long setIdOf​(long nodeId)
        Deprecated.
        Description copied from interface: DisjointSetStruct
        Find set Id of element p.
        Parameters:
        nodeId - the element in the set we are looking for
        Returns:
        an id of the set it belongs to