how to print an empty graph