Does cypher replaces neo4j traversal now-a-days? Is neo4j traversal deprecated now?
No, there are many cases where a manual traversal is useful. The Traversal
class is indeed deprecated but the TraversalDescription
isn't. You can get it via GraphDatabaseService#traversalDescription()
.
Can I do it with REST? Can I retrieve all the node IDs that are connected to particular one node(taken as input) directly or indirectly?
Sure, but you'll have to use cypher over REST.
There is separate traversal API via REST. Check this docs.neo4j.org/chunked/milestone/rest-api-traverse.html But I am not getting its explanation and also response gives a lot of URIs which will take more time if I want to fetch properties from these URIs.
Didn't know about that one, thanks! You can access the REST traversal via the java-rest-binding project, see the
RestTraversal
class. It will hide all the URL's you are talking about. I'm not sure whether there's support for other programming languages.