Skip to content

Will yfiles-jupyter-graphs work for kuzu? #41

Answered by yGuy
Analect asked this question in Q&A
Discussion options

You must be logged in to vote

This turns out to be pretty easy via the "get_as_networkx()" functionality of Kuzu:

See my modified version of the notebook: https://colab.research.google.com/drive/1TveYBPKHPJ4fnVweHf6tNs44D82h0M82

!pip install kuzu==0.0.7 yfiles-jupyter-graphs
from yfiles_jupyter_graphs import GraphWidget
from google.colab import output
output.enable_custom_widget_manager()
result = conn.execute('MATCH (a:User) - [f:Follows] -> (b:User) RETURN a,f,b')
GraphWidget(graph = result.get_as_networkx())

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@yGuy
Comment options

Answer selected by Analect
@Analect
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants