I have been using the pydot project to generate graphs showing relations between different data.
import pydot
graph = pydot.Dot(graph_type='graph')
for i in range(3):
edge = pydot.Edge("Root", "Connection%d" % i)
graph.add_edge(edge)
conn_num = 0
for i in range(3):
for j in range(2):
edge = pydot.Edge("Connection%d" % i, "Sub-connection%d" % conn_num)
graph.add_edge(edge)
conn_num += 1
graph.write_png('graph.png')
Running the above code (taken from here) gives me:
Question
Is there any way pydot can be configured to work in real time or are there any similar projects like pydot which allow to make graphs in real time? Something which will allow me to add new edges as the data arrives.