fixed getEdge at sucessor states