Fixed most of the Graph and anything related to it
Fixed graph and most of its related class