added support for creating control graph using pydot