def apply(self, diagonal_pairs):
        for edges in diagonal_pairs:
            self.weight_diagonals(*edges)

        for edges in diagonal_pairs:
            min_weight = min(e[2]['h_weight'] for e in edges)
            for edge in edges:
                if edge[2]['h_weight'] == min_weight:
                    self.pixel_graph.remove_edge(*edge[:2])
                else:
                    edge[2].pop('h_weight')
Iterate over the set of ambiguous diagonals and resolve them.
dataset/ETHPy150Open jerith/depixel/depixel/depixeler.py/FullyConnectedHeuristics.apply