code: def iterDiffs(self):
          
          nodes = self.nodes.values()
          nodes.sort(key=lambda node: self._height(node))
          for node in nodes:
              yield node.diff
docs: Return all diffs used in optimal network.