【发布时间】:2017-02-01 11:25:46
【问题描述】:
我在我的 python 脚本中使用Graphviz 0.5.2 with,与此类似
from graphviz import Digraph
dot = Digraph()
dot.node('A', 'King Arthur', shape='ellipse')
dot.node('B', 'Sir Bedevere the Wise', shape='ellipse')
dot.node('L', 'Sir Lancelot the Brave', shape='ellipse')
dot.edges(['AB', 'AL'])
dot.edge('B', 'L', constraint='false')
dot.render('test-output/round-table.gv', view=True)
它呈现这个:
默认情况下,节点的形状是椭圆/椭圆,但我想将其设为双椭圆,有双圆形但不是椭圆。
我已经尝试过peripheries = 2,但我不确定放置它的正确位置。
【问题讨论】: