Skip to content

Graph Query Languages

HugeGraph supports two mainstream graph query languages: Gremlin (imperative traversal language) and Cypher (declarative pattern matching language).

  • Gremlin: The core graph traversal language of Apache TinkerPop, offering rich traversal primitives and fine control over complex topological paths.
  • Cypher: The declarative query language standardized by openCypher, featuring intuitive SQL-like patterns (MATCH ... WHERE ... RETURN) for Neo4j parity.

Language Guides & References

  • HugeGraph-Gremlin

    Gremlin traversal fundamentals, CRUD query examples, and TinkerPop feature support.

  • HugeGraph Cypher

    Declarative Cypher language support, read/write statement examples, execution mechanics, and constraints.

  • Cypher Compatibility

    Coverage matrix for Cypher clauses and functions, known behavior differences, and workarounds for unsupported features.

  • Migrate from Neo4j

    Core differences between Neo4j and HugeGraph in graph modeling, ID strategies, multiple labels, and query translation.

  • Sample Graph Data

    The classic TitanDB “Graph of the Gods” sample graph dataset (12 vertices) used across query examples.

Related Tools & Entry Points

Ways to interact with and execute graph queries across HugeGraph components: