Iterating through set
LJ
luisjosenovoa at gmail.com
Mon Jul 14 20:10:47 EDT 2014
Hi All.
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
mailing list