Added graph and edge, vertices logics