# significance of modularity score or communities

**URL:** <https://igraph.discourse.group/t/significance-of-modularity-score-or-communities/1728>\
**Category:** Uncategorized\
**Created:** [18 December 2023 17:56 UTC](https://igraph.discourse.group/t/significance-of-modularity-score-or-communities/1728 "2023-12-18T17:56:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Filla](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@Filla](https://igraph.discourse.group/u/Filla)\
**Post date:** [18 December 2023 17:56 UTC](https://igraph.discourse.group/t/significance-of-modularity-score-or-communities/1728/1 "2023-12-18T17:56:32Z")

</div>

I am new to igraph and R coding. I applied spinglass community detection to a directed network with 28 nodes and 214 edges, no weights. Database is a matrix. I found 2 communities with a modularity score = 0.32. I would like to find the significance of the modularity and/or the communities I found. I studied that I could do permutation test comparing my real network to random graphs. For example:[Assess the significance of modularity (community structure)](https://igraph.discourse.group/t/assess-the-significance-of-modularity-community-structure/1519)  
Can someone please provide a me a code do it? I really do not know how to start
