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.
对于我的应用程序,我需要同时(在同一个图表上)表示两种关系:一种是对称的,另一种不是。
目标:
有没有办法用dot做到这一点?
digraph { A; B; C subgraph Rel1 { edge [dir=none, color=red] A -> B -> C -> A } subgraph Rel2 { edge [color=blue] B -> C C -> A } }
您可以将dir=none边缘属性传递给无向图连接:
dir=none
digraph { A; B; C A -> B B -> C C -> A [dir=none] }