def weight_island(self, edge):
        if (len(self.pixel_graph[edge[0]]) == 1
            or len(self.pixel_graph[edge[1]]) == 1):
            return (5, 5)
        return (0, 0)
Weight diagonals connected to "islands".
dataset/ETHPy150Open jerith/depixel/depixel/depixeler.py/IterativeFinalShapeHeuristics.weight_island