【问题标题】:Create connection line between edges and nodes in GraphViz [closed]在 GraphViz 中创建边和节点之间的连接线 [关闭]
【发布时间】:2016-12-16 15:32:47
【问题描述】:

我正在寻找一种在 GraphViz 中创建以下图形的方法

我想得到连接线,它从一个边缘到其他边缘,你可以在连接处看到(标记为红色)

任何想法如何做到这一点?

【问题讨论】:

    标签: python graphviz decision-tree


    【解决方案1】:

    对于dashed or dotted 试试:

    edge [ style="dashed" ]; // affects all edges
    // or
    A->B [style="dotted"];
    

    绘图的其他部分和边缘之间的边缘或指向边缘的箭头,可能需要放置一个不可见的节点,即一个点,然后从指向它的边缘移除箭头。它似乎仍然存在中断,但它可以用于虚线或虚线。

    大约:

    S_X [style="invis",shape="point"];
    S_Y [style="invis",shape="point"];
    S -> S_Y [arrowhead="none"];
    S_Y -> Y;
    S -> S_X [arrowhead="none"];
    S_X -> X;
    S_Y -> S_X [arrowhead="none"];
    

    【讨论】:

    • 其实是个好主意,但不幸的是我的情况不是可接受...
    猜你喜欢
    • 2012-05-09
    • 2017-12-19
    • 1970-01-01
    • 2011-01-16
    • 2023-04-02
    • 2020-06-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多