These are the codes used in our paper "Unraveling the disease consequences and mechanisms of modular structure in animal social networks".
email: [email protected], [email protected]
Please cite the paper above, if you use our code in any form or create a derivative work.
For many Python codes, Networkx Python package is required. Link to install Networkx can be found here.