logging the graph stats