Matlab code for sampling multi-layer, multi-resolution, multi-subject communities using modularity maximization [Link to code]. If you use this code, please cite:
Betzel, R. F., Bertolero, M. A., Gordon, E. M., Gratton, C., Dosenbach, N. U., & Bassett, D. S. (2018). The community structure of functional brain networks exhibits scale-specific patterns of variability across individuals and time. bioRxiv, 413278. [Link to paper]
Note: This code requires the GenLouvain toolbox. Please download [here] and cite both:
Jutla, I. S., Jeub, L. G., & Mucha, P. J. (2011). A generalized Louvain method for community detection implemented in MATLAB. URL http://netwiki. amath. unc. edu/GenLouvain.
Mucha, P. J., Richardson, T., Macon, K., Porter, M. A., & Onnela, J. P. (2010). Community structure in time-dependent, multiscale, and multiplex networks. science, 328(5980), 876-878. [Link to paper]