We can count the number of nodes with the User label with a simple Cypher query:
MATCH (u:User) RETURN count(u)
However, if your graph is more complex and contains multiple node labels and relationship types, it would be more efficient to use an APOC procedure:
CALL apoc.meta.stats()
The result you will get will be something like this:
The sixth column contains the number of nodes for each label, while the eighth column shows the number of relationships per type.
Another interesting procedure from the same plugin is as follows:
CALL apoc.meta.data()
The result of this procedure for our graph is reproduced in the following screenshot:
You can see that we have, in the preceding screenshot, a list of properties for each node label. In our graph, the nodes with the User label have four properties (contributed_to_neo4j, followers, user_id, and publicRepos).
With these functions, we can get an idea of the volume of data. To get a more precise...