def weight_sparse(self, edge):
        offset = self.sparse_window_offset(edge)
        nodes = list(edge[:2])
        seen_nodes = set(nodes)

        values = list(self._weight_sparse(offset, nodes, seen_nodes))
        retvals = (min(values), max(values))
        return retvals
Weight diagonals based on feature sparseness.
dataset/ETHPy150Open jerith/depixel/depixel/depixeler.py/IterativeFinalShapeHeuristics.weight_sparse