I know I can do something like
a -> z [label="XXX"];
b -> z [label="XXX"];
c -> z [label="XXX"];
d -> z [label="XXX"];
But is there a way to do something like
a,b,c,d -> z [label="XXX"];
with same output as the code above? It would really make my dot source simpler :)
You were almost there:
{a;b;c;d} -> z [label="XXX"];
does what you're looking for.
To reply to your comment, here's how you distribute a label (or color or other attribute) across multiple edges:
subgraph
{
edge [label="Hello"];
{a,b,c,d} -- z;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With