graphviz: Create new node with this same label

You could define your nodes explicitly and set the label for them. Then each node has an unique id, but can have the same labels. Consider this example:

strict graph G {
    1 [label="A"];
    2 [label="B"];
    3 [label="B"];
    4 [label="A"];
    1 -- 2;
    2 -- 3;
    3 -- 4;
}

which will output (with dot):

Nodes with same labels

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)