-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
networkx export of the graph #893
Comments
Right now, there's no direct way to do this. You would have to Out of interest, how would you expect to map the node labels and relationship types onto a NetworkX graph? |
Well a simple solution such as https://neo4j.com/labs/apoc/4.1/export/graphml/ what is happening for |
This would be wonderful! |
hi @geoHeil , from py2neo import Graph
g = Graph(name="test")
# Create testdata on db1
g.run("CREATE (n:MyNode) SET n.id = 1")
g.run("CREATE (n:MyNode2) SET n.id = 2")
# Extract data from db1
graphml = g.run(
"CALL apoc.export.graphml.all(null, {stream:true}) yield file, nodes, relationships, properties, data RETURN file, nodes, relationships, properties, data"
).to_data_frame()
print(graphml) |
how can I export the graph to networkx which is obtained by running some cypher query?
The text was updated successfully, but these errors were encountered: