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.
我用来pyreverse从 python 代码创建类图,这会产生如下图:
pyreverse
可以看出,有些类是不相关的。我想将子图排列在彼此下方,以便我可以将图像包含在文档中。
有没有一种简单的方法来修改点文件,以便将图形的断开连接部分放在彼此下方?
用不可见的边连接断开的部分:
digraph so { node[ shape = box ]; A[ label = "Message" ]; B[ label = "MetaMessage" ]; C[ label = "TrainingMessage" ]; D[ label = "MessageBundle" ]; A -> { B C }; { B C } -> D[ style = invis ]; }
产量