changes in GraphManager class