Home▸Articles▸Networks & Graph Theory

Label Propagation in 2D: Community Detection by Majority Vote

An algorithmic approach to uncovering hidden community structures within complex networks.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What Label Propagation Is

Label propagation is an unsupervised algorithm used to detect community structures within networks. It operates by assigning labels (representing community membership) to each node based on the labels of its neighbors, iteratively updating these labels until a stable state is reached where no further changes occur.

The method is particularly useful for identifying communities in large and complex networks without requiring prior knowledge about their structure or size.

How It Works

In the Raghavan-Albert-Kumara label propagation algorithm, each node starts with a unique label. During each iteration (or 'step'), nodes adopt the most common label among their neighbors. This process continues until all labels stabilize or no more changes occur.

This approach leverages local information to infer global community structures, making it efficient and scalable for large networks.

live demo · related simulation● LIVE

Why It Matters

Label propagation is significant in network analysis because it provides a simple yet effective way to uncover hidden community structures. This can be crucial in various fields such as social sciences, biology, and computer science for understanding relationships and interactions within complex systems.

Moreover, the algorithm's ability to work without global information makes it robust against noise and perturbations, enhancing its applicability in real-world scenarios.

Real-World Applications

Label propagation has been applied in diverse fields. In social networks, it helps identify clusters of users with similar interests or behaviors. In biological networks, it aids in understanding protein interactions and cellular pathways.

In computer science, the algorithm can be used for tasks like network segmentation and anomaly detection.

Frequently asked questions

How does label propagation ensure convergence?

Label propagation ensures convergence by iteratively updating node labels based on their neighbors' labels. Each iteration brings nodes closer to the majority label of their neighborhood, eventually stabilizing when no more changes occur.

What is a stochastic block model and why does it matter?

A stochastic block model is a generative process for creating networks with community structures. It matters because it provides a realistic framework to test the performance of community detection algorithms like label propagation in controlled environments.

Can label propagation handle dynamic networks?

Yes, while this simulation focuses on static graphs, label propagation can be adapted for dynamic networks where nodes and edges change over time. This allows it to track evolving communities in real-time systems.

Is the Raghavan-Albert-Kumara method the only label propagation algorithm?

No, there are several variations of label propagation algorithms, each with its own strengths and applications. The Raghavan-Albert-Kumara method is one of the earliest and most widely studied.

Try it live

Everything above runs in your browser — open Label Propagation in 2D — Community Detection by Majority Vote and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Label Propagation in 2D — Community Detection by Majority Vote simulation

What did you find?

Add reproduction steps (optional)