10

I have the following .dot language file for GraphViz:

digraph {
    graph [ dpi = 300 ];
    Hello -> World
    Hello -> World
    Hello -> World
}

Which renders as:

enter image description here

But I don;t want the duplicate links i.e. I want it to render as:

enter image description here

Yes, I could add logic to the program that produces the dot file, but if there is a GraphVix parameter to do this it’d be very useful.

Thanks.

Edit: Raising the dead here, but the question of which this is marked as a duplicate has multiple connections between 2 nodes but each with different labels, so not exactly the same, although the suggestion to use the ‘strict’ keyword does work.

Steve Ives
  • 7,435
  • 3
  • 23
  • 55
  • Voted to reopen as the question that it is marked as a duplicate of, and the cause of the close votes, isn't a duplicate. – Steve Ives Nov 30 '21 at 11:00
  • 'Original' question edited because the title was incorrect, leading to the confusion perhaps that this is a duplicate. The edges in the other question are NOT the same but have different labels. – Steve Ives Apr 07 '22 at 09:37

1 Answers1

17

‘strict’ was the answer :

strict digraph {
    graph [ dpi = 300 ];
    Hello -> World
    Hello -> World
    Hello -> World
}
Steve Ives
  • 7,435
  • 3
  • 23
  • 55