Pygraphviz hierarchical graph changing when peer linkedge is added

8 views
Skip to first unread message

Edward Mazurek

unread,
Aug 5, 2026, 12:13:38 PM (2 days ago) Aug 5
to pygraphviz-discuss
Screenshot 2026-08-05 082856_good.pngHi everyone,
I've been using pygraphviz for many years to represent networks and I currently have a script that represents a Cisco UCS network.  I'm representing this network top down like this:

FC Switch1   FC Switch2
        |          |
UCS FI 1  UCS FI 2
   \      /
    \    /
     FEX1
      |
   Server1...

I found that the order of the above nodes is maintained when I add the edges using add_edge() with the higher node first and then the lower node second.

My problem is that I just found out that there can be a link/edge between UCS FI 1 and UCS FI 2. When I add that edge the UCS FI 1 now appears higher in the resulting topology diagram.

I've included a couple of edited screen shots that show the difference with the 'peer links' and without.

Any way to include those peer edges/links and still maintain the top down order?

Thanks in advance!
Ed Mazurek

Screenshot 2026-08-05 083115_bad.png
Reply all
Reply to author
Forward
0 new messages