I can reproduce the same issue when I'm calling graph() twice, e.g.
result = session.run("MATCH (s)-[r]->(t) RETURN s,r,t LIMIT 20").graph()
w = GraphWidget(graph = result.graph())
So try to call graph() only once on the result.
Hi,
is the widget loading with an empty graph, or is the widget itself missing?
You could also check whether your queried graph actually contains nodes and relationships, e.g.
print(graph.nodes.__len__())
print(graph.relationships.__len__())
Other th...
A bit late to the party, but you can also try yfiles-jupyter-graphs.
There is also a sample notebook here: import_from_neo4j.ipynb
This presentation from NODES2022 also shows how it works: (1) 065 Explore Your Graphs Visually With Jupyter Notebooks -...