Fix bug in printing empty graph.