Adds printing functionality of graph.
Adds check to see if Task is critical