modularity analysis functions