Because of the way that information is being generated, I results that look like this:
digraph "A" {
"a1" -> "a2";
"a2" -> "a1";
"a1" -> "a2";
"a2" -> "a1";
}
What I would prefer to see, is:
digraph "A" {
"a1" -> "a2"[dir=both];
}
Is there a way to tell the entire digraph to merge edges,
and create bidirectional edges where possible?
I'd like to keep the data as generated, but add a few lines to create the second image.
That's essentially what concentrate
is for.
Simply add the following line to your graph, at the beginning or the end:
concentrate=true