How to draw 2 labels on edge in a .dot file?
Asked Answered
O

1

7

I have for now a dot file generating 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 that in my .dot file ? I am not sure this is possible.

Offense answered 22/11, 2013 at 15:55 Comment(0)
C
13

An edge can have a taillabel and a headlabel attribute:

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

Those labels are displayed near the tail and the head of the edge.

Counterchange answered 22/11, 2013 at 17:22 Comment(1)
Just what I was looking for !! I was not able to find that with Google :-(Offense

© 2022 - 2024 — McMap. All rights reserved.