More functionality in building the dependency graph and printing it in graphviz format.

The binding between the graph and the workflow tasks is not idea, but I have to think a bit more about it before I refactor.