Added pretty printing of graphs.