Interplay between Topology and Edge Weights in Real-World Graphs: Concepts, Patterns, and an Algorithm

Fanchen Bu, Shinhwan Kang, Kijung Shin · DOI

Introduction

How do the connections in a network dictate the "strength" or "weight" of those connections? If one possessed only the map of a social network without interaction data, could they estimate the frequency of communication between nodes? This research explores the deep interplay between a graph's structure (topology) and its edge weights, identifying consistent patterns that allow for the "re-weighting" of unweighted graphs with high macroscopic realism.

The "Missing Middle" of Weight Assignment

Most research on weighted graphs focuses on two distinct areas: edge-weight prediction (inferring missing weights in a partially known graph) or weighted-graph generation (creating both structure and weights from scratch). This paper identifies a critical "missing middle": realistic weight assignment.

Given a fixed, real-world topology—such as a flight network or a co-authorship map—how can we assign weights that appear realistic at a macroscopic scale? Solving this is essential for data anonymization, anomaly detection, and the refinement of community detection algorithms where interaction frequency is a vital but often hidden variable.

The PEAR Algorithm

The researchers introduce PEAR (Pattern-based Edge-weight Assignment on gRaphs), an algorithm that assigns realistic weights using only unweighted topology and two parameters ($a$ and $k$). The algorithm is based on the concept of layers, where a layer-$i$ of a graph consists of edges with a weight of at least $i$.

PEAR operates on three core empirical observations:

  1. Linear Growth: Within a layer, the probability of an edge being "weighty" (exceeding the current threshold) grows nearly linearly with the number of Common Neighbors (CN) until it reaches a saturation point.
  2. Adjacency Similarity: The structural patterns that facilitate the existence of an edge are remarkably similar to the patterns that determine its strength.
  3. Power-law Across Layers: A consistent power-law relationship connects different layers, governed by the parameters $a$ and $k$.

Unlike baseline methods that require a priori knowledge of the exact number of edges in every weight class, PEAR solves a unique equation for each layer and assigns weights iteratively, making it highly efficient.

Experimental Setup and Datasets

The study utilized 11 publicly available real-world datasets across five domains to validate the PEAR algorithm:

  • Social/Communication: Online forums (OF).
  • Transportation: US airport flight data (FL).
  • Discussion Threads: Ubuntu, Math, and StackOverflow threads (th-UB, th-MA, th-SO).
  • Stack Exchange Interactions: User comments and answers (sx-UB, sx-MA, sx-SO, sx-SU).
  • Co-authorship: DBLP and Google Scholar (co-DB, co-GE).

Key Insights

  • Common Neighbors as a Primary Predictor: While complex metrics like edge betweenness or eigenvector centrality are often used in network analysis, the simple count of common neighbors proved to be the most indicative and efficient predictor of edge weight.
  • The Saturation Point: There exists a specific threshold of common neighbors beyond which an edge is almost guaranteed to have a high weight. This threshold is nearly identical for both the existence of an edge and its subsequent strength.
  • Macroscopic Realism: The authors emphasize that PEAR does not aim to predict the exact weight of a specific edge (microscopic accuracy), which is often impossible from topology alone. Instead, it focuses on macroscopic realism—ensuring the overall distribution of weights and their relationship to the structure matches real-world observations.

Results and Performance

PEAR was compared against several baselines, including purely random assignment (PRD), sorting by common neighbors (SCN), and supervised machine learning models such as Random Forests (RFF) and Neural Networks (NEB).

  • Superior Realism: PEAR consistently achieved the lowest Kolmogorov-Smirnov (KS) statistics for both common neighbor and node-degree distributions, indicating a closer match to ground-truth data.
  • Parameter Efficiency: PEAR outperformed supervised models that were provided with 10% of the ground-truth weights as training data, despite PEAR using only two parameters and no ground-truth weight counts.
  • Downstream Utility: In practical applications, using PEAR-generated weights improved the performance of the Louvain community detection algorithm on unweighted citation and website networks, demonstrating that the assigned weights capture meaningful structural information.

Limitations and Future Work

Currently, PEAR is designed for integer weights representing discrete occurrences (e.g., number of messages). It does not yet apply to continuous real-valued weights like physical distance or correlation. Additionally, while macroscopic patterns are robust, extreme outliers in a network can occasionally skew assignments.

Future research will focus on extending PEAR to real-valued weights and developing methods to automatically determine the optimal $a$ and $k$ parameters based solely on topological features.

Summary updated

BibTeX
@inproceedings{bu2023interplay,
  author = {Fanchen Bu and Shinhwan Kang and Kijung Shin},
  title = {{Interplay between Topology and Edge Weights in Real-World Graphs: Concepts, Patterns, and an Algorithm}},
  booktitle = {Data Min. Knowl. Discov},
  year = {2023},
  url = {https://openreview.net/forum?id=qEMm_c65f7},
}
Figure