Abstract
Random key graphs (RKGs) are essential models for studying the Eschenauer-Gligor key predistribution scheme in wireless sensor networks (WSNs) and have recently gained traction in social network modeling and recommender systems. This paper provides a rigorous mathematical analysis of the local structure of RKGs. We establish a zero-one law for the existence of triangles and identify the critical scaling thresholds. Furthermore, we compute the clustering coefficient for RKGs and compare it to the Erdős-Rényi (ER) model. Our results demonstrate that for parameters relevant to practical applications, RKGs exhibit significantly higher clustering than ER graphs, making them excellent candidates for "small-world" network models.
Introduction
In network science, the Erdős-Rényi (ER) graph—where edges between nodes exist with a fixed, independent probability—is often used as a baseline. Previous research suggested that for global properties like connectivity, more complex models like random key graphs (RKGs) behave almost identically to ER graphs. In an RKG, each of the $n$ nodes is assigned a set of $K$ keys chosen uniformly at random from a pool of size $P$; two nodes are connected if they share at least one common key.
While global connectivity might appear similar between the two models, this paper identifies a major gap: the local structure—specifically the density of triangles (cliques of three nodes)—is vastly different. If the ER approximation fails to count triangles correctly, it will also fail to predict critical network behaviors such as resiliency, epidemic spreading, or social clustering.
The Failure of the "Transfer Technique"
A common approach in random graph theory is to "transfer" results from the well-understood ER model to more complex models by matching edge probabilities. However, this paper proves that this technique fails for local properties like triangle counts. RKGs are inherently more "clumpy" than ER graphs.
In an RKG, if node A and node B share a specific key $x$, and node B and node C also share key $x$, then A and C are guaranteed to be connected. This dependency creates a much higher density of triangles than in an ER graph, where every edge is an independent coin flip. This "common interest" effect means that RKGs naturally capture the transitivity found in social networks and secure WSNs.
Key Theoretical Results
1. The Zero-One Law for Triangles
Using the Method of Moments, we establish a threshold for the existence of triangles. We identify a parameter $\tau(\theta)$ (a function of $K$ and $P$). If $n^3 \tau(\theta) \to 0$ as $n \to \infty$, the probability that the graph contains any triangles goes to 0. Conversely, if $n^3 \tau(\theta) \to \infty$, the graph is guaranteed to contain triangles with probability 1. This scaling exhibits significant differences from the thresholds observed in ER graphs.
2. Tunable Clustering and Asymptotic Equivalence
We derive a closed-form expression for the clustering coefficient $C_K(\theta)$, which represents the likelihood that "a friend of my friend is also my friend." We prove that the clustering coefficient of an RKG is asymptotically equivalent to: $$C_K(\theta) \simeq \left(1 + \frac{P}{K^3}\right) C_{ER}(p)$$ where $C_{ER}(p)$ is the clustering coefficient of a matched ER graph. As the key pool $P$ grows relative to $K$, the RKG becomes infinitely more clustered than the ER model, allowing researchers to "tune" the clustering to match empirical data.
Numerical Validation and Clustering Superiority
To validate these theoretical findings, we conducted numerical simulations for networks of $n=1000$ nodes. The results, summarized in the table below, compare the clustering coefficient of the RKG ($C_K$) against the matched ER graph ($C_{ER}$).
As shown in the data, for a configuration of $K=4$ and $P=10^3$, the RKG clustering coefficient is approximately $0.2590$, while the ER counterpart is only $0.0159$. This represents an order-of-magnitude difference, confirming that RKGs are much better suited for modeling highly clustered "small-world" environments.
Conclusion and Future Directions
This study confirms that random key graphs exhibit the "small-world" property: they maintain the high clustering of social communities while possessing the short path lengths typical of random networks. This makes them a superior choice for modeling secure wireless sensor networks and social interest groups where the ER model falls short.
Future work will look to incorporate geographic constraints (Random Key-Geometric Graphs) to account for physical distance in WSNs and explore the containment of larger subgraphs, such as squares or higher-order cliques.
Summary updated