Fixed problem generating statistics about graph