Update graph_visual_with_html.py

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

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)