Clustering Edges in Directed Graphs

Manohar N. Murthi, Kamal PremaratnearXiv 2022

Abstract

How do vertices exert influence in graph data? We develop a framework for edge clustering, a new method for exploratory data analysis that reveals how both vertices and edges collaboratively accomplish directed influence in graphs, especially for directed graphs. In contrast to the ubiquitous vertex clustering which groups vertices, edge clustering groups edges. Edges sharing a functional affinity are assigned to the same group and form an influence subgraph cluster. With a complexity comparable to that of vertex clustering, this framework presents three different methods for edge spectral clustering that reveal important influence subgraphs in graph data, with each method providing different insight into directed influence processes. We present several diverse examples demonstrating the potential for widespread application of edge clustering in scientific research.

Introduction

Network analysis has traditionally centered on the vertex. By grouping nodes into communities based on similarity or connectivity, researchers have gained significant insights into social structures, protein interactions, and communication networks. However, vertex clustering often fails to capture the dynamic nature of influence—the process by which information, traffic, or energy moves through a system.

To address this, we present a framework for edge clustering in directed graphs (digraphs). By grouping edges that share functional affinities, we can reveal the underlying subgraphs that drive directed influence. This shift from asking "which nodes are similar?" to "which connections work together?" allows for a more granular understanding of how networks function as systems of flow.

The Flow Laplacian Framework

The core innovation of this research is the "Flow Laplacian Edge Clustering Framework," which adapts the mathematical principles of spectral clustering from the vertex space to the edge space. The framework is built upon three distinct "edge functional affinities"—rules that define when two edges are performing the same role within the network. These affinities act as different lenses through which a researcher can view the graph:

  1. Producer-Receptor-Emphasizing (PRE): This method groups edges that share a common vertex and either both point toward it or both point away from it. This lens is ideal for identifying "star" motifs, highlighting nodes that act as massive broadcasters (producers) or collectors (receptors) of influence.
  2. Directed-Path-Emphasizing (DPE): DPE groups edges that form a continuous directed path through a common vertex (e.g., Edge A points to Node X, and Edge B points away from Node X). This is designed to extract long, continuous chains of influence or "highways" of flow.
  3. Region-Emphasizing (RGE): This method groups edges that share a common vertex regardless of their direction. This partitions the graph into distinct, localized neighborhoods of concentrated flow, similar to traditional clustering but focused on the connections themselves.

Mathematical Implementation

These affinities are expressed as matrix quadratic forms using novel Flow Laplacians. To prevent the algorithm from producing trivial clusters, we introduce an "edge volume" metric that normalizes the math based on edge weights and the relative importance of the connected nodes. The algorithm is computationally efficient: it computes the eigenvectors of these normalized Flow Laplacians and applies standard $k$-means clustering to the results.

Experimental Results

The framework was validated across a diverse array of real-world datasets, demonstrating that different affinity lenses reveal different structural truths within the same data.

Neuroscience: The C. elegans Connectome

In the chemical synapse network of the nematode C. elegans, the DPE method successfully isolated the specific multi-step neural circuits responsible for backward locomotion in response to touch. While vertex clustering might group neurons by biological type, edge clustering grouped the specific synapses that collaborate to execute a behavioral response. PRE clustering further clarified the roles of interneurons by distinguishing between those primarily receiving signals and those primarily broadcasting them.

Sociology: US Inter-State Migration

Analyzing 2019 US migration data revealed a contrast between methods. PRE clustering highlighted major hubs like California (a massive producer of migrants) and Florida (a major receptor). However, RGE clustering uncovered a localized, highly concentrated migration "pocket" in the Midwest centered around Minnesota—a structural feature that is often overlooked in broader demographic analyses.

Ecology: Food Webs

In the Florida Bay Cypress Wetlands food web, DPE clustering naturally mapped the trophic levels of the ecosystem, tracing the flow of carbon from primary producers (phytoplankton) to apex predators (alligators). RGE clustering was able to isolate a specific flow region critical to the habitat of the endangered Florida panther, demonstrating the framework's utility in conservation biology.

Key Insights and Discussion

A primary insight of this work is that edge clustering frequently links dissimilar nodes. Because an edge cluster represents a functional circuit, it may include sensory neurons, interneurons, and motor neurons—nodes with different properties that nonetheless work together to achieve a single flow objective.

Furthermore, the framework demonstrates that a single graph can contain multiple "truths." By switching between PRE, DPE, and RGE methods, researchers can explore different facets of the same network's influence structure. This provides a more holistic view of network dynamics than traditional community detection.

Limitations and Future Work

Currently, the framework assumes all directed edges have positive weights. In networks with inhibitory or negative relationships (e.g., inhibitory synapses in a brain network), the algorithm currently utilizes absolute values. Future research will focus on reformulating these Laplacians to natively handle signed edges. Additionally, exploring linear combinations of the three affinity types could lead to hybrid clustering methods tailored to specific complex systems.

Summary updated

BibTeX
@misc{murthi2022clustering,
  author = {Manohar N. Murthi and Kamal Premaratne},
  title = {{Clustering Edges in Directed Graphs}},
  year = {2022},
  eprint = {2202.12265},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.12265},
}
Figure