printing out graphs