Class PackedAdjacencyList

    • Method Detail

      • degree

        public int degree​(long node)
        Description copied from interface: AdjacencyList
        Returns the degree of a node. Undefined behavior if the node does not exist.
        Specified by:
        degree in interface AdjacencyList
      • adjacencyCursor

        public AdjacencyCursor adjacencyCursor​(long node,
                                               double fallbackValue)
        Description copied from interface: AdjacencyList
        Create a new cursor for the target ids of the given node. If the cursor cannot produce property values, it will yield the provided fallbackValue. NOTE: Whether and how AdjacencyCursors will return properties is unclear. Undefined behavior if the node does not exist.
        Specified by:
        adjacencyCursor in interface AdjacencyList
      • adjacencyCursor

        public AdjacencyCursor adjacencyCursor​(@Nullable
                                               @Nullable AdjacencyCursor reuse,
                                               long node,
                                               double fallbackValue)
        Description copied from interface: AdjacencyList
        Create a new cursor for the target ids of the given node. If the cursor cannot produce property values, it will yield the provided fallbackValue. NOTE: Whether and how AdjacencyCursors will return properties is unclear. The implementation might try to reuse the provided reuse cursor, if possible. That is not guaranteed, however, implementation may choose to ignore the reuse cursor for any reason. Undefined behavior if the node does not exist.
        Specified by:
        adjacencyCursor in interface AdjacencyList
      • free

        @TestOnly
        public void free()
        Free the underlying memory.

        This list cannot be used afterwards.

        When this list is garbage collected, the memory is freed as well, so it is not required to call this method to prevent memory leaks.