Update graph_visual_with_html.py

This commit is contained in:
zrguo
2024-10-26 14:04:11 +08:00
committed by GitHub
parent 2b09c7c8d4
commit e07b9f0530

View File

@@ -6,7 +6,7 @@ import random
G = nx.read_graphml("./dickens/graph_chunk_entity_relation.graphml")
# Create a Pyvis network
net = Network(notebook=True)
net = Network(height="100vh", notebook=True)
# Convert NetworkX graph to Pyvis network
net.from_nx(G)