AI Glossary / Graphs and symbolic AI / Intermediate
Divisive Communities
Definition
Divisive communities are groups identified by progressively splitting a graph into smaller parts. In the supplied NetworkX reference, the relevant method removes edges with high edge betweenness until the requested component-based partition is reached. The resulting groups describe a pattern in the modeled connections, rather than proving that a particular real-world community exists.
What it means
A graph may contain clusters whose nodes connect closely within each cluster but have fewer connections across clusters. A divisive method starts with the larger structure and separates it. This contrasts with an agglomerative approach that starts with smaller groups and merges them.
The word divisive is mathematical here; it does not describe social conflict. Different splitting rules, graph definitions, or requested numbers of groups can produce different partitions of the same underlying records. A community result therefore needs an explanation of how the graph and the splitting procedure were constructed.
How it works
The edge-betweenness method measures how frequently an edge lies on shortest paths between node pairs, accounting for alternative equally short paths. It removes an edge with the highest score, checks the connected components, and repeats if more separation is needed. Scores are recalculated because deleting an edge can change the routes through the remaining graph.
The NetworkX function accepts a desired number of sets and returns sets of nodes. A component is a connected part of the modified graph. The computational procedure creates a proposed partition; deciding whether that partition is meaningful requires evidence about the original data, not just the fact that the algorithm completed.
Three practical examples
- Analysts explore a product co-purchase graph to identify groups worth examining as possible shopping themes.
- A software team studies a dependency graph for candidate module boundaries, then checks whether the proposed divisions fit actual interfaces.
- Researchers compare divisions in a collaboration graph across different observation windows to assess whether apparent groups persist.
Think of it this way
Think of a map containing towns joined by roads, with only a few bridges connecting larger regions. Removing a connecting bridge can reveal separate regions. The analogy is limited because graph edges can represent many relationships, and high betweenness is a route-based calculation rather than a judgment that a connection is weak, undesirable, or safe to remove in reality.
Worked example
Build an undirected, unweighted graph with two triangles: A-B-C-A and D-E-F-D. Add one bridge, C-D. There are three nodes on each side, so there are 3 x 3 = 9 cross-side unordered pairs. Every shortest path for those nine pairs must use C-D. Its unnormalized edge-betweenness score is therefore nine.
For comparison, A-C lies on the shortest paths from A to C, D, E, and F, giving a score of four. A-B is used only for the pair A,B, giving one. Symmetric edges have corresponding scores, so C-D has the highest value.
Removing C-D leaves exactly two connected components, {A,B,C} and {D,E,F}. If two groups were requested, the procedure can stop. This example deliberately uses a single clear bridge. Real graphs can contain ties, several alternative routes, or no compelling community boundary. The nine is a shortest-path count under the stated convention, not a percentage, confidence level, or measure of social importance.
Illustrative case study
At fictional Willow Catalogue, a co-purchase graph splits into two prominent groups. Reviewers discover that a seasonal promotion created many of the links. They rerun the analysis on another period and compare the candidate groups with product descriptions before naming them.
They also retain the removed connections in their business records; algorithmic removal was only an analytical operation. This fictional case illustrates validation of an apparent grouping, without claiming that the partition improved sales or revealed permanent customer preferences.
Common misconceptions and mistakes
Do not remove all edges according to their initial scores and assume that reproduces iterative edge-betweenness splitting. After a removal, shortest paths can change, so recomputation is part of the method.
A requested group count is an input choice, not evidence that the data naturally contain that many communities. Ties can affect the sequence of splits. Weighted graphs require particular care because shortest-path calculations interpret weights as distances or costs; a larger interaction count may instead mean a stronger connection. Use an explicit, justified transformation when necessary rather than silently treating strength as distance. Repeated centrality calculations can also become expensive on large graphs.
Business use
Businesses can use divisive partitions to organize investigation of relationships, dependencies, or content. Document what one node and one edge represent, the observation period, missing-data rules, and any weight transformation. Compare several plausible partitions with operational evidence. A boundary useful for reporting may be unsuitable for reorganizing a team or separating software components. Keep the original graph and the analytical partition separately so reviewers can inspect the cross-group relationships.
People also ask
Does divisive community detection always produce equally sized groups?
No. The splitting rule can produce very uneven components.
Is a removed edge necessarily unimportant?
No. A bridge can be crucial for communication precisely because it connects otherwise separate groups.
Is the partition unique?
Not necessarily. Ties, parameters, data choices, and alternative algorithms can lead to different valid analytical outputs.
Check your understanding
In the two-triangle example, does removing C-D prove that its endpoints should stop cooperating?
Answer: No. Removal reveals a structural separation in the graph. It does not establish whether the real relationship is beneficial, costly, mandatory, or dispensable.
Related terms
- Agglomerative clustering
- Shortest Paths
- Community detection
- edge betweenness
- connected component
- graph partition
- Girvan-Newman algorithm
- shortest path
Learn next
Add a second cross-group edge, A-F, to the worked example. Identify which node pairs now have alternative routes and explain why the original bridge's score must be recalculated. Then discuss whether requesting three groups would have a clear business interpretation.
More in Graphs and symbolic AI
- Distributed constraint satisfaction - Distributed constraint satisfaction is a way of solving a constraint problem in which variables, constraints, or decision responsibilities are distributed...
- Distributed representation - A distributed representation encodes an item through a pattern across several representational units, with individual units participating in the...
- Distributed tree search - Distributed tree search divides the exploration of a search tree among cooperating processors or workers.
- Domain closure - Domain closure is an assumption that every object in a modeled domain is accounted for by the specified names or ground terms.
- Domain elements - Domain elements are the objects that belong to the domain of a logical model. They are what variables range over and what names or other terms can refer to.
- Dominant strategy - A dominant strategy is a strategy that gives a player an outcome at least as good as every alternative, whatever strategies the other players choose, under...
Sources
NetworkX, edge_betweenness_partition, official algorithm reference: https://networkx.org/documentation/stable/reference/algorithms/generated/networkx.algorithms.community.divisive.edge_betweenness_partition.html Girvan and Newman, Community Structure in Social and Biological Networks, original research abstract: https://arxiv.org/abs/cond-mat/0112110
Previous: Divisive clustering Next: Dixon's Q test