print graph