Complex non-backtracking matrix for directed graphs

Keishi Sando, Hideitsu Hino

Introduction

The analysis of directed graphs—networks where edges possess a specific orientation—is fundamental to understanding complex systems ranging from citation networks to ecological food webs. However, directed networks present unique mathematical challenges. Unlike undirected graphs, their adjacency matrices are typically asymmetric, resulting in complex eigenvalues that complicate spectral analysis. Furthermore, real-world networks are often "sparse," meaning nodes have very few connections. In these regimes, traditional spectral methods frequently succumb to "spectral leakage," where high-degree hub nodes dominate the spectrum and obscure the underlying community structure.

This paper introduces the Complex Non-Backtracking (CNBT) matrix, a novel mathematical framework designed to bridge the gap between Hermitian adjacency methods and non-backtracking walk theory. By integrating complex weights with a non-backtracking constraint, the CNBT matrix enables robust community detection in directed graphs, even at the theoretical limits of sparsity.

The Limitations of Current Methods

Standard approaches to directed graph clustering often rely on Hermitian adjacency matrices. These matrices use complex numbers to encode edge directionality while maintaining a Hermitian structure, ensuring real eigenvalues. While effective in dense graphs, these methods falter in sparse settings. The presence of "hubs"—nodes with disproportionately high degrees—causes eigenvalues to "leak" from the bulk of the spectrum, leading to poor clustering performance.

In undirected graphs, this issue is mitigated by non-backtracking (NBT) matrices, which prevent a walk from immediately returning to its previous node. However, a unified approach that handles both the directionality of edges and the sparsity of the network has remained elusive until now.

The Complex Non-Backtracking (CNBT) Matrix

The authors propose the CNBT matrix, denoted as $B_\alpha$, which tracks transitions between directed edges rather than nodes. The construction involves scaling a standard NBT matrix by a diagonal matrix $\Lambda$ containing complex weights ($\alpha, \bar{\alpha},$ or $1$).

Rotation and Mixed Walks

Central to this approach is the concept of "rotation." By assigning complex weights based on the direction of a walk relative to the edge orientation, the matrix effectively "counts" mixed walks. This allows the algorithm to distinguish between paths that follow the intended flow of the network and those that move against it, providing a more nuanced representation of the graph's structure.

Theoretical Foundations

The CNBT matrix is not merely a heuristic; it is grounded in rigorous graph theory. The authors extend Ihara’s formula, a classic result relating the cycles of a graph to the determinant of its adjacency matrix, to the complex directed setting. Furthermore, they demonstrate that the CNBT matrix naturally emerges from the linearization of Belief Propagation (BP) equations. This connection suggests that the matrix captures the fundamental way information propagates through a directed network.

The CNBT-SC Algorithm

To leverage this matrix for community detection, the authors developed the CNBT Spectral Clustering (CNBT-SC) algorithm. The process involves:

  1. Constructing the CNBT matrix for a given directed graph.
  2. Computing the top eigenvectors.
  3. Mapping these edge-based eigenvectors back to node-based "in-vectors" and "out-vectors."
  4. Applying K-means clustering to the resulting node embeddings.

Crucially, the authors prove that the spectral properties of the massive $2m \times 2m$ CNBT matrix (where $m$ is the number of edges) can be recovered using a much smaller $2n \times 2n$ matrix (where $n$ is the number of nodes). This reduction significantly enhances the computational efficiency of the method for large-scale networks.

Experimental Results

The CNBT-SC algorithm was evaluated using synthetic benchmarks generated from various Stochastic Block Models (SBMs), including Directed SBMs (DSBM) and Degree-Corrected SBMs (DCSBM).

Performance in Sparse Regimes

Experiments demonstrated that CNBT-SC significantly outperforms "SimpleHerm," a state-of-the-art Hermitian spectral method, in sparse settings. In scenarios with a low average degree (e.g., $c=5$), SimpleHerm's accuracy—measured by the Adjusted Rand Index (ARI)—dropped sharply as noise increased. In contrast, CNBT-SC remained stable, identifying clusters right down to the theoretical detectability limit.

Robustness to Hubs

On DCSBM datasets, which incorporate high-degree nodes to simulate real-world "hubs," CNBT-SC showed remarkable resilience. While traditional spectral methods were distracted by these hubs, the non-backtracking nature of the CNBT matrix allowed it to maintain high recovery rates where other methods fell to near-zero accuracy.

Conclusion and Future Work

The Complex Non-Backtracking matrix represents a significant advancement in the spectral analysis of directed networks. By combining the directional encoding of Hermitian matrices with the sparsity-robustness of non-backtracking walks, it provides a powerful tool for community detection in challenging real-world data.

Future research will focus on refining normalization techniques to improve K-means performance in near-limit cases and exploring the probabilistic interpretation of "complex-valued messages" in Belief Propagation. Additionally, the authors aim to formally characterize the phase transitions and detectability thresholds for this new class of matrices.

Summary updated

BibTeX
@article{sando2025complex,
  author = {Keishi Sando and Hideitsu Hino},
  title = {{Complex non-backtracking matrix for directed graphs}},
  journal = {J. Complex Networks},
  year = {2025},
  doi = {10.1093/comnet/cnaf012},
}
Figure