Individual mixing patterns in networks
Python class for Bayesian analysis of mixing patterns in networks.
This code implements the methods described in:
Mixing patterns and individual differences in networks [arXiv]
George T. Cantwell and M. E. J. Newman
Phys. Rev. E 99, 042306
The basic usage would be
import individual_mixing DM = individual_mixing.DirichletModel(k,g) DM.fit()
k is the edge matrix and
g is the group vector, as described in the original paper.
example.py for an example.