def fix_unheaded_edges(self, prev):
        edges = np.array([], dtype=object)
        prev_presence = np.array([False if x is None else True for x in prev])
        while False in prev_presence:
            for v in range(len(prev)):

                if prev[v] is None:
                    for fs in self.FSs[v][np.argsort(self.FS_costs[v])]:
                        if prev_presence[fs]:
                            prev[v] = fs
                            break
                if prev[v] is None:
                    for bs in self.BSs[v]:
                        if prev_presence[bs]:
                            prev[v] = bs
                            break
            prev_presence = np.array(
                [False if x is None else True for x in prev])

        for v in range(len(prev)):
            edges = np.append(edges, None)
            edges[-1] = [prev[v], v]
        return edges, prev
Return a clone of this retry manager
dataset/ETHPy150Open dnlcrl/PyGraphArt/src/graph.py/Graph.fix_unheaded_edges--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/kazoo-2.0/kazoo/retry.py/KazooRetry.copy