GraphViz - 如何绘制这些边

时间:2018-01-03 02:51:10

标签: graphviz diagram image-graphviz

Heylo,我只是想看看下面图片(蓝色/青色)中模仿的边缘是否可能......我尝试过很多不同的边缘属性组合和我我真的很努力让边缘看起来整洁有序,而不是走最短路径。

Edge Example

我的代码如下,我不希望子图从当前位置移动,所以我知道边缘需要'constraint = false'。

digraph G
{
    graph [compound = true];
    splines = false;
    node [style = bold, shape = record, fontcolor = magenta];

    subgraph cluster0
    {
        style = bold; label = “Mac”;
        edge [style = invisible, arrowhead = none];
        “Finder” -> “Terminal” -> “Safari”;
    }

    subgraph cluster1
    {
         style = bold; label = “Windows”;
         node_1 [label = “<f0> Start|<f1> Command Prompt”];
    }

    subgraph cluster2
    {
         style = bold; label = “Linux”;
         node_2 [label = “<f0> Start|<f1> Konsole”];
    }
}

提前谢谢!

1 个答案:

答案 0 :(得分:1)

我没有直接答案,但PlantUML位于GraphVis之上并生成类似于您所寻找的边缘 - 因此您可以生成.dot文件(参见Conditional下的第二个示例),检查那里的边缘。

相关问题