Iterating through set
luisjosenovoa at gmail.com
Tue Jul 15 02:10:47 CEST 2014
I'm coding a Dynamic Programming algorithm to solve a network flow problem. At some point in the algorithm I have to iterate through a set of nodes, while adding and/or removing elements, until the set is empty. I know a regular set() object does not work in a case like this, so I wonder if anyone knows of an efficient pythonic way to handle this.
Thanks in advance!
More information about the Python-list