graph data structure incoming edges was broken