Nested graph node and edge node classes in graph class. Tested main with both part 1 and part 2.