gqlalchemy.transformations
nx_to_cypher
def nx_to_cypher(graph: nx.Graph, config: NetworkXCypherConfig = None) -> Iterator[str]
Generates a Cypher query for creating a graph.
nx_graph_to_memgraph_parallel
def nx_graph_to_memgraph_parallel(graph: nx.Graph, host: str = "127.0.0.1", port: int = 7687, username: str = "", password: str = "", encrypted: bool = False, config: NetworkXCypherConfig = None) -> None
Generates Cypher queries and inserts data into Memgraph in parallel.
NetworkXCypherBuilder Objects
class NetworkXCypherBuilder()
yield_queries
def yield_queries(graph: nx.Graph) -> Iterator[str]
Generates Cypher queries for creating a graph.
yield_query_groups
def yield_query_groups(graph: nx.Graph) -> List[Iterator[str]]
Generates Cypher queries for creating a graph by query groups.