Add getExitEdges function