Print all elements in a graph