How to draw 2 labels on the edge in a .dot file?

Now I have a point file creating the following graph

label 

[A] -----------> [b]

and I want to change it to something like:

[A] label 1 ------> label 2 [b]

Is there any way to express this in my .dot file? I am not sure if this is possible.

+7
graphviz dot
source share
1 answer

An edge can have taillabel and headlabel :

 a -> b[headlabel="head", taillabel="tail"]; 

These marks appear next to the tail and head of the edge.

+8
source share

All Articles