added function to print graph stats in dir and cumulatively
added function to print graph stats in dir and cumulatively