> ## Documentation Index
> Fetch the complete documentation index at: https://io-migration.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Overview

## Community management endpoints

Communities are groups of entities that are connected to each other. They can be generated using a clustering and summarization algorithm implemented by R2R.

To automatically generate communities from entities and relationships present in the graph, you can use the following endpoint:

| Method | Endpoint | Description |
| - | - | - |
| GET | [/graphs/\{collection\_id}/communities/build](https://io-migration.mintlify.site/reference/build-graph-communities.md) | Create a new community |

Once communities are generated, you can manage them using the following endpoints. You can also add your own communities to the graph.

| Method | Endpoint | Description |
| - | - | - |
| GET | [graphs/\{collection\_id}/communities](https://io-migration.mintlify.site/reference/list-communities.md) | Get relationships for a graph |
| POST | [/graphs/\{collection\_id}/communities/\{community\_id}](https://io-migration.mintlify.site/reference/) | Retrieve a community |
| POST | [/graphs/\{collection\_id}/communities/\{community\_id}](https://io-migration.mintlify.site/reference/update-a-community.md) | Update community |
| DELETE | [graphs/\{collection\_id}/communities/\{community\_id}](https://io-migration.mintlify.site/reference/delete-a-community.md) | Delete community |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.