Graphiz: how to set 'default' arrow style?

Posted by sdaau on Stack Overflow See other posts from Stack Overflow or by sdaau
Published on 2010-12-22T22:40:58Z Indexed on 2010/12/22 22:54 UTC
Read the original article Hit count: 220

Filed under:
|
|

Hi all,

Consider this dot language code:

digraph graphname {
    subgraph clusterA {
        node [shape=plaintext,style=filled];
        1 -> 2 [arrowhead=normal,arrowtail=dot];
        2 -> 3 -> X2 -> 5;
        6;
        7;
        label = "A";
        color=blue
    }
}

In the above example, only the 1 -> 2 connection will have the arrowhead=normal,arrowtail=dot style applied; all the other arrows will be of the "default" style.

My question is - how do I set the arrow style (for the entire subgraph - or for the entire graph), without having to copy paste "[arrowhead=normal,arrowtail=dot];" next to each edge connection?

Thanks in advance,
Cheers!

© Stack Overflow or respective owner

Related posts about graphviz

Related posts about dot