Interface Degrees

    • Method Detail

      • degree

        int degree​(long nodeId)
      • degreeWithoutParallelRelationships

        int degreeWithoutParallelRelationships​(long nodeId)
        Much slower than just degree() because it may have to look up all relationships.

        This is not thread-safe, so if this is called concurrently please use RelationshipIterator.concurrentCopy().
        See Also:
        Graph.isMultiGraph()