Cypher can be used to query nodes and relationships based on properties, relation types, labels, and so on. You can also write complex Cypher queries to query a subpart of the graph. In this recipe, we will learn some commonly used Cypher queries, which will be useful for querying the graph.
To step through this recipe, you will need to create some nodes and relationships among them to get the most from this recipe.
We have divided this recipe into the following problem sets:
START n = node(*) RETURN COUNT(n)
MATCH (n)-[r]-(m) RETURN COUNT(r)