Neo4j: what is the request approach to select a single node based on the property and position of the node?

I'm having a problem evaluating when to use some kind of Neo4j query engine (Gremlin, Cypher, workarounds, built-in algorithms). For example, I would like to select a single node in the entire graph

  • with the most ribs;
  • within a certain path length from one of the 4 starting nodes;
  • having a specific value for the property.

I use Python neo4jrestclient and I can run the main Gremlin / Cypher scripts and workarounds for some requirements separately (for example, computing In / OutDegree with Gremlin), but I don’t see a more general picture of how to combine them.

Any suggestions?

+3
source share
1

Cypher :

start n=node:index(indicator="startnode-value")
match n-[:REL*..10]->target
where target.prop = "value"
return target
+1

All Articles