Class GraphIntersect<CURSOR extends org.neo4j.gds.api.AdjacencyCursor>

  • All Implemented Interfaces:
    org.neo4j.gds.api.RelationshipIntersect
    Direct Known Subclasses:
    HugeGraphIntersect, UnionGraphIntersect

    public abstract class GraphIntersect<CURSOR extends org.neo4j.gds.api.AdjacencyCursor>
    extends java.lang.Object
    implements org.neo4j.gds.api.RelationshipIntersect
    An instance of this is not thread-safe; Iteration/Intersection on multiple threads will throw misleading NullPointerExceptions. Instances are however safe to use concurrently with other RelationshipIterators.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected GraphIntersect​(long maxDegree)  
    • Constructor Detail

      • GraphIntersect

        protected GraphIntersect​(long maxDegree)
    • Method Detail

      • intersectAll

        public void intersectAll​(long nodeA,
                                 org.neo4j.gds.api.IntersectionConsumer consumer)
        Specified by:
        intersectAll in interface org.neo4j.gds.api.RelationshipIntersect
      • checkCursorInstance

        protected abstract CURSOR checkCursorInstance​(org.neo4j.gds.api.AdjacencyCursor cursor)
      • cursorForNode

        protected abstract CURSOR cursorForNode​(@Nullable
                                                CURSOR reuse,
                                                long node,
                                                int degree)
      • degree

        protected abstract int degree​(long node)