Hostname: page-component-89b8bd64d-x2lbr Total loading time: 0 Render date: 2026-05-08T08:34:24.110Z Has data issue: false hasContentIssue false

Generating preferential attachment graphs via a Pólya urn with expanding colors

Published online by Cambridge University Press:  08 April 2024

Somya Singh*
Affiliation:
ICTEAM Institute, UCL, Louvain-la-Neuve, Belgium
Fady Alajaji
Affiliation:
Department of Mathematics and Statistics, Queen’s University, Kingston, Canada
Bahman Gharesifard
Affiliation:
Electrical and Computer Engineering Department, UCLA, Los Angeles, CA, USA
*
Corresponding author: Somya Singh; Email: somya.singh@uclouvain.be
Rights & Permissions [Opens in a new window]

Abstract

We introduce a novel preferential attachment model using the draw variables of a modified Pólya urn with an expanding number of colors, notably capable of modeling influential opinions (in terms of vertices of high degree) as the graph evolves. Similar to the Barabási-Albert model, the generated graph grows in size by one vertex at each time instance; in contrast however, each vertex of the graph is uniquely characterized by a color, which is represented by a ball color in the Pólya urn. More specifically at each time step, we draw a ball from the urn and return it to the urn along with a number of reinforcing balls of the same color; we also add another ball of a new color to the urn. We then construct an edge between the new vertex (corresponding to the new color) and the existing vertex whose color ball is drawn. Using color-coded vertices in conjunction with the time-varying reinforcing parameter allows for vertices added (born) later in the process to potentially attain a high degree in a way that is not captured in the Barabási-Albert model. We study the degree count of the vertices by analyzing the draw vectors of the underlying stochastic process. In particular, we establish the probability distribution of the random variable counting the number of draws of a given color which determines the degree of the vertex corresponding to that color in the graph. We further provide simulation results presenting a comparison between our model and the Barabási-Albert network.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2024. Published by Cambridge University Press
Figure 0

Figure 1. We illustrate a sample path for constructing a preferential attachment graph using an expanding color Pólya urn with $\Delta _{t}=2$. For $t=0$, the urn has only one ball of color $c_{1}$. This urn corresponds to $\mathcal{G}_{0}$ and $\textbf{U}_{0}=U_{1,0}=1$. For $t=1$, the $c_{1}$ color ball is drawn from and returned to the urn (i.e., $\textbf{Z}_{1}=Z_{1,1}=1$). Two additional $c_{1}$ color balls are added to the urn along with a new $c_{2}$ color ball and so $\textbf{U}_{1}=(3/4,1/4)$. For $t=2$, a $c_{2}$ color ball is drawn from and returned to the urn (i.e., $\textbf{Z}_{2}=(0,1)$). Two additional $c_{2}$ color balls are added to the urn along with a new $c_{3}$ color ball; hence $\textbf{U}_{2}=(3/7,3/7,1/7)$. For $t=3$, a $c_{1}$ color ball is drawn from and returned to the urn (i.e., $\textbf{Z}_{3}=(1,0,0)$). Two additional $c_{1}$ color balls are added along with a new $c_{4}$ color ball; thus $\textbf{U}_{3}=(5/10,3/10,1/10,1/10)$.

Figure 1

Figure 2. An illustration of how the sequence of draw vectors $\{\textbf{Z}_{4}=(0,1,0,0),\textbf{Z}_{3}=(0,1,0),\textbf{Z}_{2}=(1,0),\textbf{Z}_{1}=1\}$ determines $\mathcal{G}_{4}$.

Figure 2

Figure 3. A simulation of the probability distribution given by (17) in Corollary 2 for the case of $\Delta _{t}=1$ with $1\leq t\leq 12$. A normalized histogram of the counting random variable $N_{2,12}$ from our model is plotted (by averaging over $1000$ simulations) and is shown to concord with the curve of (17) (in blue).

Figure 3

Figure 4. On the left-hand side is a $15$-vertex network generated via the draws from a Pólya urn with expanding colors and $\Delta _{t}=5$ for all $t \geq 1$ and on the right-hand side is a network with $15$ vertices generated via Barabási-Albert model. For our model, unlike the Barabási-Albert model, each vertex is represented by a distinct color which corresponds to a color type of balls in the Pólya urn at that time instant. Furthermore, the extra reinforcement parameter $\Delta _{t}$ in our model provides versatility in the level of preferential attachment. The parameter $\Delta _{t}=5$ in our model enables the central vertex of the graph on the left-hand side to obtain a higher degree ($11$ in this case) as compared to the right-hand side Barabási-Albert network in which the highest degree achieved is $6$.

Figure 4

Figure 5. Degree distributions of networks generated until time $5000$ (averaged over $250$ simulations) for the Barabási-Albert model and our model with $\Delta _{t}=1$ and $\Delta _{t}=\ln (t)$. In (a), the degree distributions of both models are nearly identical. While in (b) the degree distributions are quite different.

Figure 5

Figure 6. Degree distribution of the Barabási-Albert model and our model generated for two different choices of $\Delta _{t}$, (a)$\Delta _{t} = f(t)$ and (b)$\Delta _{t}=g(t)$, where $f(t)$ and $g(t)$ are defined in (26). Both plots are averaged over $250$ simulations, where each simulation is a generation of a $5000$-vertex graph.

Figure 6

Figure 7. Vertices average birth time versus degree for our model using (a)$\Delta _{t}=1$; (b)$\Delta _{t}=\ln (t)$; (c)$\Delta _{t}=f(t)$ and (d)$\Delta _{t}=g(t)$ (where the functions $f(t)$ and $g(t)$ are given in (26)) and for the Barabási-Albert network. All networks are generated for $5000$ time steps and the average of 250 such networks is plotted.