在 doxygen 点图中的箭头旁边书写

Writing beside arrows in doxygen dot graphs

我想在 doxygen 中绘制图表。我使用了以下代码。

/*! \mainpage
\dot
digraph example{
    node[shape=record, fontname=Helvetica, fontsize=10];
    b [label="thread_USRP" ];
    c [label="worker1"  ];
    d [label="worker2"  ];
    e [label="threadUDP_Tx"  ];
    b -> c [arrowhead= "open", style = "solid"];
    b -> d [arrowhead= "open", style = "solid"];
    c -> e [arrowhead= "open", style = "solid"];
    d -> e [arrowhead= "open", style = "solid"];
}
\enddot
*/

我想在箭头旁边写点东西。我怎样才能做到这一点?我还希望来自节点 b 的箭头到达水平线,然后从水平线我有两个箭头,一个指向节点 c,另一个指向 d(类似于树图)。有人可以帮忙吗?

提前致谢。

正如 the graphviz site (http://graphviz.org/) has a lot of information. In the gallery (http://graphviz.org/gallery/) will give some nice pictures and in e.g. fsm (https://graphviz.gitlab.io/_pages/Gallery/directed/fsm.html 的评论中所写,我们看到了一个很好的示例以及使用的代码:

LR_0 -> LR_2 [ label = "SS(B)" ]

因此使用 label 属性