A community-detection method that starts with each node alone, moves nodes between communities to improve a score, then aggregates the graph and repeats until improvement stops. section 14.1
Here it appears alongside GraphRAG indexing, where graph communities are computed after entities and relationships are merged into a NetworkX graph. section 14.1
Core steps shown here:
- Begin from a singleton partition. section 14.1
- Move nodes between communities to improve the quality score. section 14.1
- Aggregate the resulting communities into a new network. section 14.1
- Repeat until the score no longer improves. section 14.1
GraphRAG community detection
A knowledge graph is built from extracted entities and relationships, combined with NetworkX, then passed to the community routine before community summaries are generated.


