Graphviz:如何渲染尊重某些节点边缘连接点的图形?
我想以与以下布局类似的布局呈现一个图形:
我尝试了这个:
digraph EDP
{
graph [colorscheme=paired12];
node [label="\N", shape=box, style="rounded,filled", colorscheme=paired12, color=8, fillcolor=7, width="1.2", fontname="Arial narrow", fontsize=12];
edge [colorscheme=paired12, color=8, fontsize=11, fontname="Arial narrow"];
src [label="Source"];
dst [label="Destination"];
filter [label="Filter"];
src -> dst [label="Encoding process"];
src -> filter [label="a"];
filter -> dst [label="b"];
src -> filter [dir=back, label=c];
filter -> dst [dir=back, label=d];
src -> dst [dir=back, label="Decoding process"];
}
生成了以下结果:(不是很好...
谁能告诉我最接近的解决方案(可能不可能做出完全相同的解决方案? )
I want to render a graph in similar layout to the following one:
I tried this:
digraph EDP
{
graph [colorscheme=paired12];
node [label="\N", shape=box, style="rounded,filled", colorscheme=paired12, color=8, fillcolor=7, width="1.2", fontname="Arial narrow", fontsize=12];
edge [colorscheme=paired12, color=8, fontsize=11, fontname="Arial narrow"];
src [label="Source"];
dst [label="Destination"];
filter [label="Filter"];
src -> dst [label="Encoding process"];
src -> filter [label="a"];
filter -> dst [label="b"];
src -> filter [dir=back, label=c];
filter -> dst [dir=back, label=d];
src -> dst [dir=back, label="Decoding process"];
}
which generated the following result :( Not very nice...
Can anyone show me the closest possible solution? (Probably it is not possible make exactly the same)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在今晚结束之前,我已经尽可能接近了:
将图形保存为 edp.gv 并使用
结果创建图像:
一些评论:
constraint=false
,并添加了不可见的边以使三个节点居中dir =返回
,但是当使用-Gsplines=ortho
渲染时我无法使用它As close as I got before calling it a night:
Save the graph as
edp.gv
and create the image withResult:
Some remarks:
constraint=false
on all edges, and add invisible edges to have the three nodes centereddir=back
, but I wasn't able to use this when rendering with-Gsplines=ortho