Refactored the Graph stuff such that it uses generic interfaces
Fixed warning in Problem 107