graphvizneato

Multiple edges between nodes using neato


I'm using neato to output a graph, which works nicely. But neato merges edges between the same node pairs, and now I need to display multiple edges (arcs) with different properties (color, weight, possibly length) - is this possible?

I've tried to experiment with strict, splines=true/false, and different edge id and color, but nothing seems to work.


Solution

  • Have you tried to simply define multiple edges? For example,

    graph G {
      A -- B;
      A -- B;
    }
    

    produces

    Undirected graph with two egdes between A and B