Reusable implementations in Gremlin, a DSL for graph traversal.