Debug gets to the point where all components are assigned
then stucks in an infite loop because two nodes have each other as
previous. This may be the result of the fact that the graph is directed
and there are two edges combining the two nodes. This leads to them
beeing double neighbors