def __init__(self, model: GraphModel, var_idx: List[int], p: Prob):
    self.model = model
    self.var_idx = var_idx
    self.p = p
def __init__(self, model: GraphModel, var_idx: List[int], p: Prob):
    self.model = model
    self.var_idx = var_idx
    self.p = p