Graphviz -- splines = "curved" 不起作用

问题描述

我正在尝试使用 .pdf文件.dot 中编译有限状态机 (FSM) 视觉表示:

// Use directional graph "digraph" opossed to "graph"
digraph {

    rankdir = TB;
    nodesep = 0.5;
    ranksep = 0.25;
    //splines = "curved";
    //splines = "ortho";
    
    // A:
    node[
        fontname = "IBM Plex Mono Text Italic",fontsize = 8,shape = circle,style = "filled",fillcolor = "#ddddDD",fontcolor = "#333333",color = "#AAAAAA",penwidth = 0.1;
    ]

    // B:
    edge[
        fontname = "IBM Plex Mono Bold",//style = "dotted",arrowhead = normal,arrowsize = 0.4,penwidth = 0.1;
        fontcolor = "#444444",color = "#777777",]

    // C:
    graph[
        fontname = "IBM Plex Mono Bold",fontsize=8,rank = TB,fontcolor = "#444444",color = "#EEEEEE",]
    
    // C:
    000[label = "start",shape = "plain",fillcolor = "none"];
    001[label = "q1",shape = "doublecircle"];
    002[label = "q2"];
    003[label = "q3"];

    // D:
    000->001;
    001->001[label="2"];
    001->002[label="1"];
    002->001[label="0"];
    002->002[label="2"];
    002->003[label="1"];
    003->002[label="0"];
    003->003[label="2"];
    001->003[label="1"];
    003->001[label="0"];

}

这几乎完美编译(除了直线内部转换)

enter image description here

如果我取消注释顶部的 splines = "ortho"; 行,它会像这样编译(它很丑,但我想表明它有效)

enter image description here

但是当我取消注释顶部的行 splines = "curved"; (这是我需要的那个) 时,灾难发生了:

enter image description here

为什么会发生这种情况?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)