Skip to main content
QUICK REVIEW

[Paper Review] Efficiently Generating Geometric Inhomogeneous and Hyperbolic Random Graphs

Thomas Bläsius, Tobias Friedrich|arXiv (Cornell University)|Jan 1, 2019
Graph Theory and AlgorithmsComputer Science13 citations
TL;DR

This paper presents the first efficient, linear-time generator for geometric inhomogeneous random graphs (GIRGs) and adapts it to hyperbolic random graphs (HRGs), supporting non-zero temperature and higher-dimensional geometries. The generator uses optimized geometric sampling and a distance filter to achieve sub-second generation of 10M-edge graphs on commodity hardware, outperforming existing HRG generators despite supporting the more complex binomial model with temperature control.

ABSTRACT

Hyperbolic random graphs (HRG) and geometric inhomogeneous random graphs (GIRG) are two similar generative network models that were designed to resemble complex real world networks. In particular, they have a power-law degree distribution with controllable exponent beta, and high clustering that can be controlled via the temperature T. We present the first implementation of an efficient GIRG generator running in expected linear time. Besides varying temperatures, it also supports underlying geometries of higher dimensions. It is capable of generating graphs with ten million edges in under a second on commodity hardware. The algorithm can be adapted to HRGs. Our resulting implementation is the fastest sequential HRG generator, despite the fact that we support non-zero temperatures. Though non-zero temperatures are crucial for many applications, most existing generators are restricted to T = 0. We also support parallelization, although this is not the focus of this paper. Moreover, we note that our generators draw from the correct probability distribution, i.e., they involve no approximation. Besides the generators themselves, we also provide an efficient algorithm to determine the non-trivial dependency between the average degree of the resulting graph and the input parameters of the GIRG model. This makes it possible to specify the desired expected average degree as input. Moreover, we investigate the differences between HRGs and GIRGs, shedding new light on the nature of the relation between the two models. Although HRGs represent, in a certain sense, a special case of the GIRG model, we find that a straight-forward inclusion does not hold in practice. However, the difference is negligible for most use cases.

Motivation & Objective

  • To develop an efficient, linear-time generator for geometric inhomogeneous random graphs (GIRGs) that supports non-zero temperature and higher-dimensional geometries.
  • To adapt the GIRG generator to hyperbolic random graphs (HRGs), including the binomial variant with temperature, which is rare in existing implementations.
  • To enable precise control over the expected average degree in GIRGs by solving the non-trivial parameter dependency via a linear-time estimation algorithm.
  • To provide a clear, implementable description of the sampling algorithm and evaluate the practical relationship between GIRGs and HRGs.

Proposed method

  • Adapt the core sampling algorithm from Bringmann et al. [7] to support non-zero temperature and higher dimensions in GIRGs.
  • Implement a distance filter that precomputes inverse probabilities to reduce expensive exponential evaluations during edge sampling, achieving ~2x speedup.
  • Use Morton codes with optimized bit manipulation (e.g., BMI2 instructions) for efficient spatial indexing and neighbor lookup in d-dimensional grids.
  • Employ binary search over a monotonic function to estimate the parameter c that yields a desired average degree, using a linear-time algorithm to compute expected degree.
  • Leverage partial sorting and reuse of neighbor sets to reduce edge evaluation cost from O(|ER|) to O(|R|) by processing vertices in increasing weight order.
  • Optimize hyperbolic distance computation by replacing costly arccosh with cosh(d) < cosh(R) and precomputing intermediate values to avoid repeated expensive operations.

Experimental results

Research questions

  • RQ1How can a geometric inhomogeneous random graph (GIRG) generator be efficiently implemented to support non-zero temperature and higher-dimensional geometries while maintaining linear expected time complexity?
  • RQ2What is the non-trivial relationship between the input parameters of the GIRG model and the resulting average degree, and how can it be inverted efficiently?
  • RQ3How does the performance of the proposed GIRG generator compare to existing HRG generators, especially in the binomial (non-zero temperature) case?
  • RQ4To what extent can GIRGs approximate HRGs in practice, and what adjustments to average degree are needed to obtain subgraphs or supergraphs of HRGs?
  • RQ5Can the core sampling algorithm be adapted to HRGs while maintaining high performance, particularly when supporting non-zero temperature?

Key findings

  • The proposed GIRG generator runs in expected linear time and generates graphs with ten million edges in under one second on commodity hardware.
  • The generator supports non-zero temperature and higher-dimensional geometries, making it the first efficient implementation of its kind for the GIRG model.
  • The HRG generator based on the same algorithm is the fastest sequential HRG generator available, even though it supports the more complex binomial model with temperature.
  • The average degree can be controlled precisely via a linear-time parameter estimation algorithm, solving the non-trivial dependency between input parameters and expected degree.
  • The distance filter optimization reduces the frequency of expensive exponential evaluations by precomputing inverse probabilities, resulting in a ~2x speedup in edge sampling.
  • Despite theoretical similarities, a direct inclusion of HRGs as a special case of GIRGs does not hold in practice due to geometric and parameterization differences, though the difference is negligible for most use cases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.