Updated partial information values.
// everything below a redundancy of 0 is a redundany of 0
nodes = nx.topological_sort(self._lattice)
while nodes:
node = nodes.pop(0)
if node in reds and np.isclose(0, reds[node]):
for n in descendants(self._lattice, node):
if n not in reds:
After Change
Updated partial information values.
// everything below a redundancy of 0 is a redundany of 0
nodes = list(nx.topological_sort(self._lattice))
while nodes:
node = nodes.pop(0)
if node in reds and np.isclose(0, reds[node]):
for n in descendants(self._lattice, node):
if n not in reds: