【问题标题】:How to use graphviz with neato style in windows?如何在 Windows 中使用带有整洁风格的 graphviz?
【发布时间】:2022-01-20 03:54:51
【问题描述】:

我想以整洁的方式输出以下代码。

from graphviz import Graph

dot = Graph()

dot.node('a')
dot.node('b')

dot.edge('a', 'b')

print(dot.source)
dot.render('test-output/round-table.gv', view=True)

【问题讨论】:

    标签: python-3.x windows graphviz neato


    【解决方案1】:

    使用dot.engine = 'neato'来使用neato风格。

    【讨论】:

      【解决方案2】:
      dot.graph_attr['layout'] = 'neato'
      

      【讨论】:

        猜你喜欢
        • 2021-08-28
        • 2011-09-25
        • 1970-01-01
        • 2013-12-04
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-03-26
        • 2014-03-31
        相关资源
        最近更新 更多