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.
我知道我可以做类似的事情
a -> z [label="XXX"]; b -> z [label="XXX"]; c -> z [label="XXX"]; d -> z [label="XXX"];
但是有没有办法做类似的事情
a,b,c,d -> z [label="XXX"];
输出与上面的代码相同?它真的会让我的点源更简单:)
你几乎在那里:
{a;b;c;d} -> z [label="XXX"];
做你正在寻找的东西。
要回复您的评论,以下是跨多个边缘分布标签(或颜色或其他属性)的方式:
subgraph { edge [label="Hello"]; {a,b,c,d} -- z; }