Class CompositeAdjacencyList

  • All Implemented Interfaces:
    java.lang.AutoCloseable, AdjacencyList

    public class CompositeAdjacencyList
    extends java.lang.Object
    implements AdjacencyList
    • Method Detail

      • size

        public int size()
      • 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 CompositeAdjacencyCursor adjacencyCursor​(long node)
        Description copied from interface: AdjacencyList
        Create a new cursor for the target ids of the given node. The cursor is not expected to return correct property values. 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 CompositeAdjacencyCursor 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 CompositeAdjacencyCursor adjacencyCursor​(@Nullable
                                                        @Nullable AdjacencyCursor reuse,
                                                        long node)
        Description copied from interface: AdjacencyList
        Create a new cursor for the target ids of the given node. The cursor is not expected to return correct property values. 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
      • adjacencyCursor

        public CompositeAdjacencyCursor 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
      • close

        public void close()
        Specified by:
        close in interface AdjacencyList
        Specified by:
        close in interface java.lang.AutoCloseable