Graphical block debugging

Jump to: navigation, search
This page documents an experimental feature. Please tell us if you experience any problems.

Some progress has been made on this, with the addition of a method in the system directory called system_write_graph. This method should output the incidence between a filtered set of variables and relations. The graph is drawn using GraphViz.

Graph of the relationship between variables and relations in the models/johnpye/lotka.a4c example.

At present this functionality is available from the Python API as shown:

M = self.L.findType('lotka').getSimulation('sim')
f = file('lotka.png','w')


The file lotka.png can then be viewed in your preferred graphics viewer.

Some preliminary work at integrating these graphics into the PyGTK has been made, see Incidence Graph.