

def __init__(self, num_nodes, energy_matrix=None, required_edges=[], prohibited_edges=[], constraints=[], weight=1.0):
    self.energy_matrix = energy_matrix
    self.mustexist = N.ones((num_nodes, num_nodes), dtype=bool)
    for (src, dest) in required_edges:
        self.mustexist[(src, dest)] = 0
    self.mustnotexist = N.zeros((num_nodes, num_nodes), dtype=bool)
    for (src, dest) in prohibited_edges:
        self.mustnotexist[(src, dest)] = 1
    self.constraints = constraints
    self.weight = weight

dataset/ETHPy150Open abhik/pebl/src/pebl/prior.py Prior.__init__/original