nodes.remove(n)
// everything above a redundancy of I(inputs, output) is I(inputs, output)
nodes = nx.topological_sort(self._lattice, reverse=True)
while nodes:
node = nodes.pop(0)
if node in reds and np.isclose(reds[node], self._total):
for n in ascendants(self._lattice, node):
After Change
nodes.remove(n)
// everything above a redundancy of I(inputs, output) is I(inputs, output)
nodes = list(reversed(list(nx.topological_sort(self._lattice))))
while nodes:
node = nodes.pop(0)
if node in reds and np.isclose(reds[node], self._total):
for n in ascendants(self._lattice, node):