add getTaskName and printDOT to graph model