Optimization, Algorithms, Heuristics, Operations Research, Python.
randomly chooses the next node to include into our solution. import random class RandomChoice(BaseConstructive): rng: random.Random def __init__( self, edges: List[Tuple[int, int]], nodes: Optional[List[int]] = None, seed=None ): super().__init__(edges, nodes) self.rng = random.Random(seed) def