class for getting graph stats