假设我们有以下简单图形:
digraph Test {
Start[shape = doublecircle];
Foo[shape = square];
Bar[shape = diamond];
Baz[shape = square];
Xyz[shape = square];
Start -> Foo;
Foo:s -> Bar:n;
Bar:w -> Baz:n;
Bar:e -> Xyz:n;
Baz:s -> Foo:n;
}
Run Code Online (Sandbox Code Playgroud)
呈现如下:
有没有办法告诉graphviz绘制Baz -> Foo
没有与Foo -> Bar
nor 相交的边缘Bar -> Baz
?
当涉及到graphviz布局时,您可以做的最好的事情就是尽可能地避免干扰:)
从您的文件中取出指南针:
digraph Test {
Start[shape = doublecircle];
Foo[shape = square];
Bar[shape = diamond];
Baz[shape = square];
Xyz[shape = square];
Start -> Foo;
Foo -> Bar;
Bar -> Baz;
Bar -> Xyz;
Baz -> Foo;
}
Run Code Online (Sandbox Code Playgroud)
你会得到:
归档时间: |
|
查看次数: |
1271 次 |
最近记录: |