Package org.neo4j.gds.triangle.intersect
Class GraphIntersect<CURSOR extends org.neo4j.gds.api.AdjacencyCursor>
- java.lang.Object
-
- org.neo4j.gds.triangle.intersect.GraphIntersect<CURSOR>
-
- 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.RelationshipIntersectAn instance of this is not thread-safe; Iteration/Intersection on multiple threads will throw misleadingNullPointerExceptions. Instances are however safe to use concurrently with otherRelationshipIterators.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedGraphIntersect(long maxDegree)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract CURSORcheckCursorInstance(org.neo4j.gds.api.AdjacencyCursor cursor)protected abstract CURSORcursorForNode(CURSOR reuse, long node, int degree)protected abstract intdegree(long node)voidintersectAll(long nodeA, org.neo4j.gds.api.IntersectionConsumer consumer)
-
-
-
Method Detail
-
intersectAll
public void intersectAll(long nodeA, org.neo4j.gds.api.IntersectionConsumer consumer)- Specified by:
intersectAllin interfaceorg.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)
-
-