I have a network of nodes in Python where I am using the ZeroMQ library with publish/subscribe messaging pattern to publish messages in a many-to-many fashion among other nodes. I want to be able to visualize the network of nodes as a graph where the edges represent the port connections between the nodes. I do not want to brute-force approach this; I want to run a python script that will automatically be able to achieve this on top of the zeromq nodes that I am already running. I want something that is similar to rqt_graph
in ROS where I run rqt_graph and it automatically draws the nodes and connections.
I looked into Network Discovery with zeromq. I also found a page Visualizing ZeroMQ networks as graphs but I am trying to figure out how to do this in my implementation.