每当我尝试在两个相同节点之间绘制多条边时,Pygraphviz只考虑最新边。有没有办法绕过这个?
示例代码:
import pygraphviz as pgv
A = pgv.AGraph()
A.add_node(1, style='filled')
A.add_node(2, style='filled')
A.add_edge(1, 2, style='filled', label='aron')
A.add_edge(1, 2, style='filled', label='jessica')
A.add_edge(1, 2, style='filled', label='diana')
A.layout()
A.draw('simple.png', prog='dot')
生成图表: