Gli*_*ome 3 graphviz vertical-alignment nodes
我使用GraphViz和以下点文件:
digraph G
{
rankdir=LR;
subgraph commits
{
"5c071a6b2c" -> "968bda3251" -> "9754d40473" -> "9e59700d33" -> "2a3242efa4";
}
subgraph annotations
{
"V1.0" [shape=box];
"br/HEAD" [shape=box];
"V1.0" -> "9e59700d33" [weight=0];
"br/HEAD" -> "2a3242efa4" [weight=0];
}
}
Run Code Online (Sandbox Code Playgroud)
它给我这样的东西:

但是我想要这样的东西:
Run Code Online (Sandbox Code Playgroud)V1.0 br/HEAD | | \/ \/5c071a6b2c - > 968bda3251 - > 9754d40473 - > 9e59700d33 - > 2a3242efa4
我怎样才能做到这一点?
为了您的帮助,谢谢你提前.
这将使注释与提交对齐:
digraph G
{
rankdir=LR;
subgraph commits
{
"5c071a6b2c" -> "968bda3251" -> "9754d40473" -> "9e59700d33" -> "2a3242efa4";
}
subgraph annotations1
{
rank="same";
"V1.0" [shape=box];
"V1.0" -> "9e59700d33" [weight=0];
}
subgraph annotations2
{
rank="same";
"br/HEAD" [shape=box];
"br/HEAD" -> "2a3242efa4" [weight=0];
}
}
Run Code Online (Sandbox Code Playgroud)
由于rank="same";整个子图的影响我必须在两个不同的子图中分割注释.
结果是:
