Participants per project
g.V().hasLabel('dossier').group().by(values('name'))
.by(inE('participates').count()).unfold()
Projects per phase
g.V().hasLabel('dossier').group().by(values('phase')).by(count()).unfold()
Dossiers per category
g.V().hasLabel('dossier').group().by(outE('parent')
.inV().values('name')).by(count()).unfold()
Dossiers' category
g.V().hasLabel('dossier').out('parent').path().by('name')
Dossiers' category path
g.V().hasLabel('dossier').repeat(out('parent').simplePath())
.until(out('parent').count().is(0))
.path().by('name')