Gremlin is powerful graph traversal language that is supported by all major graph db vendors. This cheat sheet will help you quickly get started on gremlin on any supported graph database. I was able to run these queries on neo4j and titan graph db, however these are going to be good for any other popular graph database including orientdb or others. Gremlin is open source and supported by tinkerpop api. A lot of people choose gremlin over native graph language since it can avoid vendor lock in.