working graph class.  still have to create test cases