| Class | Neo4jr::StopEvaluator |
| In: |
lib/neo4jr/stop_evaluator.rb
|
| Parent: | Object |
| DEPTH_ONE | = | org.neo4j.graphdb.StopEvaluator::DEPTH_ONE |
| END_OF_GRAPH | = | org.neo4j.graphdb.StopEvaluator::END_OF_GRAPH |
Creates a new StopEvaluator on the fly that will stop traversing the graph when the depth specified is reached
Examples:
Stop.at(4)
Creates a new StopEvaluator on the fly that delgates to the passed in block to use with the traverse method. The block should return either true or false See api.neo4j.org/current/org/neo4j/api/core/StopEvaluator.html#isStopNode(org.neo4j.api.core.TraversalPosition)
Examples:
Stop.when do |current_position|
current_position.depth > 3 && current_position.previousNode[:active] == false
end