graph provided as class - still not working, but commented