Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例如:
digraph G { rankdir = TB; subgraph A { a -> {a0, a1}; }; subgraph B { b -> {b0, b1, b2}; }; };
我想把B放在A的底部,怎么做?
您必须告诉 graphviz 子图不相等。一种方法是简单地在图形之间添加不可见的边:
digraph G { rankdir = TB; subgraph A { a -> {a0, a1}; }; subgraph B { b -> {b0, b1, b2}; }; a0 -> b [style=invis]; a1 -> b [style=invis]; };
通过添加两条不可见的边,子图可以整齐地对齐。