Onion Representations in Networks & Geometry
- Onion representations are decompositions that stratify vertices or points into layers based on well-defined combinatorial or geometric rules.
- They enable robust analysis of network resilience and geometric structure through efficient algorithms like convex-layer decomposition and biased stub matching.
- Applications include anomaly detection, graph sampling, and modeling dynamical processes, offering clear insights into hierarchical network properties.
Onion representations encompass a family of decompositions and structures in graph theory and computational geometry that organize data (vertices, points) into stratified layers, or "onions," based on well-defined combinatorial or geometric rules. These representations serve as robust summaries of both underlying connectivity and multi-scale organization, revealing deep insights into network resilience, geometric structure, and hierarchical centrality. Methods and statistics built on onion representations now play central roles in network science, data structures, algorithm engineering, and multi-scale anomaly detection.
1. Onion Structure in Networks
The onion structure in complex networks is defined by a radial layering of vertices, with high-degree ("core") vertices occupying the center and lower-degree ("peripheral") vertices organized into concentric shells. Edges are biased toward intra-layer (same-shell) connections. The construction begins by sampling a degree sequence , typically from a power-law distribution . Nodes are sorted in non-decreasing order of degree, and all nodes of the same degree are assigned the same layer index (e.g., for the smallest degree, for the next, etc.) (Wu et al., 2011).
Edge formation uses a probability , favoring stubs within the same layer, with as a tunable bias parameter. As grows, cross-layer edges become increasingly rare.
Empirical studies reveal that onion-layered networks, while retaining scale-free heterogeneity, exhibit a much higher robustness index to both targeted and random vertex removals than standard configuration-model graphs. Crucially, these onion networks also display strong expander properties, quantifiable by a large spectral gap or, equivalently, a large spectral ratio 0. This structural alignment enables maximally resilient and well-mixed network topologies (Wu et al., 2011).
2. Onion Decomposition in Geometric and Graph Settings
The onion decomposition is an inductive procedure partitioning a finite set (vertices or points in 1) into layers reflecting their distance to a boundary or core. In computational geometry, the onion decomposition (also known as convex-layer decomposition) of a point set 2 of size 3 is the sequence of convex hulls:
4
where ch(5) denotes the convex hull of 6 and the process halts when the set is exhausted. The number of layers 7 is determined by the point configuration. Each layer is typically represented as a circular list of vertices in counterclockwise order, enabling fast tangent, split, and join operations for geometric manipulation (Löffler et al., 2013).
In networks, the onion decomposition refines the 8-core peeling process. For each vertex 9, the decomposition records a pair 0, where 1 is the maximum 2 such that 3 survives in the 4-core, and 5 is the layer in which 6 is removed during the successive stripping of degree-7 nodes (Hébert-Dufresne et al., 2015).
3. Generative and Algorithmic Frameworks
Onion-Network Generation
The generative algorithm for onion-structured scale-free networks proceeds as follows (Wu et al., 2011):
- Degree Sequence Sampling: Sample 8 from 9, ensuring 0 is even.
- Layer Assignment: Sort nodes by degree, assign layers 1 accordingly.
- Stub Matching with Onion Bias: Place 2 stubs on each node. While stubs remain, randomly pair two stubs 3 and connect them with probability 4, forbidding self-loops and multiple edges.
- Final Reshuffling: If stubs remain unpaired, use random edge rewiring to incorporate them, maintaining simplicity.
This algorithm is 5 in practice (6 the edge number), directly produces robust, onion-layered graphs, and circumvents the need for explicit optimization.
Onion Decomposition Algorithms
For geometric onions, efficient algorithms exist for decomposing point sets and merging onions. Using a space decomposition tree ((7)-SDT), one can preprocess a set of 8 disjoint unit disks in 9 expected time and answer onion decomposition queries for any one-point-per-disk sample 0 in 1 time, optimally matching decision-tree lower bounds (Löffler et al., 2013).
In graphs, the onion decomposition of 2 is computed by iteratively removing all vertices with degree 3 in rounds, recording both the core index 4 and removal layer 5 per node. With suitable bucket data structures, the decomposition completes in 6 time and 7 space (Hébert-Dufresne et al., 2015).
4. Multi-Scale Statistical Characterization: Onion Spectrum and Local Representation
The onion spectrum 8 is a two-dimensional histogram counting the number of graph nodes with coreness 9 and onion layer 0. A more refined measure, the joint degree–onion distribution 1, counts nodes with degree 2, core index 3, and layer 4, with normalization 5. Marginals recover classical features such as the degree distribution and 6-core sizes (Hébert-Dufresne et al., 2015).
Onion spectra carry signatures at multiple structural scales:
- Microscale: Reveals degree heterogeneity and degree–degree correlations (e.g., deep layers for high assortativity).
- Mesoscale: Layer-decay rates within each core quantify local subgraph structure; exponential decay is indicative of tree-like local topology, while sub-exponential decay suggests loops or lattices.
- Macroscale: The maximal 7 and maximal layer index among all nodes reflect core density and centrality, respectively.
Each vertex also admits a concise local "onion representation" 8 recording its degree, coreness, onion layer, and counts of neighbors in deeper, same, or shallower positions. This representation summarizes both global and immediate-neighborhood structure in a canonical tuple (Hébert-Dufresne et al., 2015).
5. Onion Representations in Data Structures and Fast Algorithms
Efficient onion decomposition and manipulation depend on dynamic representations of convex layers or onion spectra. For convex-layers in 9, each layer is stored as a circular binary search tree supporting 0 tangent-finding, split, and join operations. These primitives allow fast union and partial recomputation of onions, which is key for computational geometry queries, imprecise point set decompositions, and spatial database applications (Löffler et al., 2013).
The union of two onions (disjoint convex-layer decompositions) can be constructed in 1 time, where 2 is the number of resulting layers. This efficiency is achieved by recursive layer merging and convex hull operations, as formalized in the union-onions pseudocode (Löffler et al., 2013).
6. Applications: Robustness, Anomaly Detection, and Network Ensemble Generation
Onion structures and decompositions provide practical and theoretically justified tools across several domains:
- Network Robustness: Onion-structured scale-free networks maximize robustness index 3 to targeted and random failures, greatly outperforming unstructured scale-free models. This robustness coincides with increased assortativity 4 and large spectral-gap proxies 5 (Wu et al., 2011).
- Topological Anomaly Detection: Deviations in layer-counts within shells (6 vs. 7), such as plateaus or slow decay, reveal anomalous subgraphs (e.g., dense cliques or long chains), as demonstrated in co-authorship and web graphs (Hébert-Dufresne et al., 2015).
- Graph Sampling: The onion network ensemble (ONE) consists of random graphs with prescribed 8. Pairing stubs with constraints matching onion statistics accurately reproduces not only degree and core properties but also multi-scale onion structure (Hébert-Dufresne et al., 2015).
- Dynamical Process Modeling: The steady-state prevalence of SIS epidemic dynamics is more faithfully captured in ONE-based randomizations, compared to models that only preserve degree or degree–degree correlations, such as the correlated configuration model (CCM).
- Shortest Path Distributions: The onion structure preserves the all-pairs shortest-path-length distribution with higher fidelity than rewired null models lacking onion constraints (Hébert-Dufresne et al., 2015).
7. Comparative Insights and Interpretability
The onion decomposition strictly refines the standard 9-core or 0-shell method by introducing within-core layering (the 1 coordinate), providing a granular distance-to-periphery stratification. Whereas classical 2-core methods assign only a coreness index, the onion decomposition encodes how long each node survives once its shell’s threshold is reached, reflecting both global and local structural roles.
Interpretability is enhanced, since 3 quantifies rounds survived inside shell 4, correlating with centrality and other network metrics. The same principles generalize to geometric onions, where convex-layer indices stratify distance from the hull in planar point sets, supporting fast union, update, and partial-recombination operations.
In summary, onion representations synthesize a variety of local and global features—degree heterogeneity, core–periphery stratification, assortativity, and loop density—into computational models and data structures that are tractable, expressive, and broadly applicable for resilience analysis, geometry, and network fingerprinting (Wu et al., 2011, Löffler et al., 2013, Hébert-Dufresne et al., 2015).