Implemented graph stats (not working yet)