graphdrawing

jgillis edited this page Jan 24, 2013 · 7 revisions

Some primitive dot-graph drawing of SX and MX graphs is available in python as follows:

from casadi.tools import *

dotdraw(myexpression)

This functionality needs dot and pydot to be installed. You can grab them with apt-get install python-pydot.

To check if the installation was successful, try out the following program in python:

import pydot