Package org.neo4j.gds.api
Interface RelationshipConsumer
-
public interface RelationshipConsumerTODO: Define interface contract, esp regarding source/target node ids returned and how that maps to relationship direction consumer interface for relationships without property.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description booleanaccept(long sourceNodeId, long targetNodeId)Called for every edge that matches a given relation-constraintdefault RelationshipConsumerandThen(RelationshipConsumer after)
-
-
-
Method Detail
-
accept
boolean accept(long sourceNodeId, long targetNodeId)Called for every edge that matches a given relation-constraint- Parameters:
sourceNodeId- mapped source node idtargetNodeId- mapped target node id- Returns:
trueif the iteration shall continue, otherwisefalse.
-
andThen
default RelationshipConsumer andThen(RelationshipConsumer after)
-
-