And today I would like to show you how easy it is to extend your own programs to generate code that could be translated by graphviz to a nice looking graph.
And now it is pretty easy to execute the python script and visualize the graph generated by it. Just execute the following two lines within a terminal.
This will produce a file test.gv that includes the following lines of code
and a *.jpg file named testGraph.jpg that shows the graph above. So you see that it is quite simple to extend your software projects to make use of graphviz. And you are of course not limited to python. The same code could easily be written using C/C++, Java or any other programming language. So give it a try. I would be happy to see some of your own implementations in your preferred programming language.
So until next time, happy coding!
Phidelux is a Computer Science MSc. interested in hardware hacking, embedded Linux, compilers, etc.