Rather blindingly obvious fix to the iterator over nodes that exist in a graph