如何通过 holoviz 和 NetworkX 呈现 GraphViz Dot 文件?

How to render a GraphViz Dot file via holoviz and NetworkX?

所以我看 docs and see that they use Graphviz, yet do not use any files... And I have a 4mil+ .dot (70mb) graph file 我想渲染。如何通过 holoviz 和 NetworkX 打开和渲染 GraphViz Dot 文件?

##更新: 经过测试的@GijsWobben 示例:偶数显示 nada small 6kb file

小文件应该有类似的东西:

这个怎么样:

import hvplot.networkx as hvnx

import networkx as nx
import holoviews as hv

# Read the file
G = nx.drawing.nx_agraph.read_dot("./figure.dot")

# Rest of the tutorial...
spring = hvnx.draw(G, with_labels=True)

# Show the plot
spring