graphviz:强制节点在rankdir = LR中排在最前面 [英] graphviz: force nodes to top in rankdir=LR
本文介绍了graphviz:强制节点在rankdir = LR中排在最前面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在图表的顶部显示开始中间结束"标签
I want to have the 'start middle end' label appear at the top of my graph
但是无论我把代码放在哪里,它似乎都默认为最底端.有可能吗?
But it seems to default to the bottom no matter where I put the code. Is it possible?
digraph G {
rankdir=LR;
{node [shape=plaintext, fontsize=16];
"Start"->"Middle"->"End"[style=invis];
}
node [shape=box];
{ rank=same
"Start";a;
}
{ rank=same
"Middle";b;d;
}
{ rank=same
"End";c;e;
}
"a"->"b"->"c";
"d"->"e";
}
推荐答案
这对我有用.
digraph G {
rankdir=LR;
{
node [shape=box];
blank [style=invisible]
blank -> d [style=invisible dir=none]
"a"->"b"->"c";
"d"->"e";
}
{
node [shape=plaintext, fontsize=16];
"Start"->"Middle"->"End"[style=invisible dir=none];
}
}
这篇关于graphviz:强制节点在rankdir = LR中排在最前面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文