graph
graph copied to clipboard
Expand section on discovering graph schema using queries
Coverage could be expanded to include simple things such as count() and groupCount() by label as well as more interesting queries such as
gremlin> g.V().outE().otherV().groupCount().by(path().by(label))
==>{[country, contains, airport]=3424,
[continent, contains, airport]=3424,
[airport, route, airport]=48320}
gremlin> g.V().inE().otherV().groupCount().by(path().by(label))
==>{[airport, contains, country]=3424,
[airport, contains, continent]=3424,
[airport, route, airport]=48320}
Realized I already have an issue for this.
Actually the issue I was thinking of is more about upfront design so this is a different one.