[Paper Review] Wmixnet: Software for Clustering the Nodes of Binary and Valued Graphs using the Stochastic Block Model
This paper presents wmixnet, a C++-based, parallelized software implementing a variational EM algorithm for stochastic block modeling to cluster nodes in binary and valued networks—supporting Bernoulli, Poisson, and Gaussian edge distributions with or without covariates. It enables efficient clustering of large networks (up to 10,000 nodes) and selects optimal group numbers via the ICL criterion, significantly improving model interpretability and scalability over existing methods.
Clustering the nodes of a graph allows the analysis of the topology of a network. The stochastic block model is a clustering method based on a probabilistic model. Initially developed for binary networks it has recently been extended to valued networks possibly with covariates on the edges. We present an implementation of a variational EM algorithm. It is written using C++, parallelized, available under a GNU General Public License (version 3), and can select the optimal number of clusters using the ICL criteria. It allows us to analyze networks with ten thousand nodes in a reasonable amount of time.
Motivation & Objective
- To develop a scalable, efficient, and extensible software tool for clustering nodes in complex networks using model-based clustering.
- To extend the stochastic block model to valued networks with covariates using probabilistic distributions (Bernoulli, Poisson, Gaussian).
- To implement a variational EM algorithm that supports parallelization and automatic selection of the optimal number of clusters via the ICL criterion.
- To enable analysis of large-scale networks (up to 10,000 nodes) in a reasonable time frame.
Proposed method
- Uses a variational Expectation–Maximization (EM) algorithm to estimate parameters and predict node group memberships in stochastic block models.
- Supports three edge distribution families: Bernoulli (binary networks), Poisson (non-negative integer weights), and Gaussian (real-valued weights).
- Incorporates covariates on edges with both homogeneous and heterogeneous effects across group pairs.
- Implements model selection via the Integrated Classification Likelihood (ICL) criterion to determine the optimal number of clusters.
- Parallelizes computation in C++ to handle large networks efficiently, with configurable reinitialization modes for robustness.
- Provides flexible input/output formats, including text, R, MATLAB, and GNU Octave, for broad usability.
Experimental results
Research questions
- RQ1How can stochastic block models be effectively extended to valued networks with covariates on edges?
- RQ2What is the computational complexity of estimating parameters in such extended models, and how can it be reduced for large-scale networks?
- RQ3Can the ICL criterion reliably select the optimal number of clusters in mixed-type and valued networks?
- RQ4How do covariates influence clustering performance and model fit in ecological and social network applications?
- RQ5To what extent does the inclusion of covariates improve model fit compared to models without covariates?
Key findings
- The wmixnet software successfully clusters networks with up to 10,000 nodes in a reasonable time, demonstrating high scalability.
- For the tree species network, the ICL criterion indicated 4 groups with taxonomic covariates, showing a larger improvement than with geographical covariates alone.
- In the fungal species network, the ICL criterion remained stable at 15 groups regardless of whether taxonomic covariates were included, indicating no significant model improvement.
- The computational complexity scales approximately as t ∝ n^2.46 * g^2.1 * 1.03^p, with model-specific constants, showing that Gaussian models are significantly more expensive than Bernoulli models.
- The software's modular design allows for easy extension to new probability models by implementing only model-specific functions.
- The exhaustive smoothing mode improved convergence reliability, especially in small or complex networks, though at the cost of increased computation time.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.