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:

MethodEndpointDescription
POST/graphs/{id}/communities/buildTo build communities from entities and relationships present in the graph

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

MethodEndpointDescription
GET/graphs/{id}/relationshipsGet relationships for a graph
GET/graphs/{id}/relationships/{id}Get a relationship for a graph
POST/graphs/{id}/relationshipsAdd relationships to a graph
POST/graphs/{id}/relationships/{id}Update a relationship for a graph
DELETE/graphs/{id}/relationships/{id}Delete a relationship from a graph
Was this page helpful?
Built with