def loglikelihood(self, net):

        adjmat = net.edges.adjacency_matrix

        # if any of the mustexist or mustnotexist constraints are violated,
        # return negative infinity
        if (not (adjmat | self.mustexist).all()) or \
           (adjmat & self.mustnotexist).any():
            return NEGINF

        # if any custom constraints are violated, return negative infinity
        if self.constraints and not all(c(adjmat) for c in self.constraints):
            return NEGINF

        loglike = 0.0
        if self.energy_matrix != None:
            energy = N.sum(adjmat * self.energy_matrix) 
            loglike = -self.weight * energy

        return loglike
Return a :class:`~twilio.rest.resources.Participants` instance for the
dataset/ETHPy150Open abhik/pebl/src/pebl/prior.py/Prior.loglikelihood--crossover with--dataset/ETHPy150Open twilio/twilio-python/twilio/rest/client.py/TwilioRestClient.participants