Edits Made to all three classes

Error in Graph.Java ->Null Pointer Return