【问题标题】:Arc graph layout in GraphVizGraphViz 中的弧形图布局
【发布时间】:2014-07-09 19:38:12
【问题描述】:

如何在 GraphViz 中绘制 arc graph?我不能强制节点排成一行。

【问题讨论】:

    标签: graphviz dot


    【解决方案1】:

    由于我没有足够的声誉来添加评论,所以我在这里发布了一些建议。下面的代码解决了强制节点站成一行的问题。

    digraph "test-graph" {
        graph [rankdir=LR]
        node[shape=circle, color=lightblue,label="",style=filled,width=0.3];
        edge[arrowhead=none,splines=line];
        1->2;
        2->3;
        edge[splines=curved];
        1->3[constraint=false];
    }
    

    但没有半圆边缘的力量。你可以试试其他工具,比如 Tikz。

    【讨论】:

      猜你喜欢
      • 2012-09-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-12-16
      • 2018-03-01
      • 1970-01-01
      • 2015-12-11
      • 1970-01-01
      相关资源
      最近更新 更多