memgraph / gqlalchemy

GQLAlchemy is a library developed with the purpose of assisting in writing and running queries on Memgraph. GQLAlchemy supports high-level connection to Memgraph as well as modular query builder.

Home Page:https://pypi.org/project/gqlalchemy/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extend `NxTranslator`

katarinasupe opened this issue · comments

The NxTranslator has been changed to inherit from the Translator class, but not all of its parts of code have been adjusted accordingly. For example:

Besides that, import and export are not following the same set of rules.
Translate from Nx graph to Memgraph rules:

  • Values of labels key in Nx graph -> node labels in Memgraph
  • Value of TYPE key in Nx graph -> relationship type in Memgraph

Translate from Memgraph graph to Nx graph rules:

  • node labels in Memgraph -> Values of label key in Nx graph
  • relationship type in Memgraph -> Value of type key in Nx graph