Branching Networks: From a Random Neighbor to a Giant Component
Complex Systems · 7/11 · Series index · Notation
Suppose half the people in a town have one connection each and the other half have three. Pair the connections at random. The average person has two contacts. Yet if you follow a randomly chosen connection, you have a three-in-four chance of arriving at someone with three contacts. That bias determines whether a message sent from one person can reach most of the town. In a large town like this, about 81% of the people will belong to a single connected group. We can find that fraction without drawing the network.
Who is at the other end of an edge?
Take an undirected network with vertices and edges. Choose a vertex uniformly. Its degree, the number of incident edges, is a random variable with distribution for nonnegative integers . Write for the mean degree and for its second moment; means expectation. Assume so there is an edge to follow.
Now choose an edge uniformly and point it in either direction with equal probability. Its destination is a uniformly chosen edge end. There are vertices of degree , and they supply of the ends. If is the destination's degree, then
Here is the degree variance. This is the friendship paradox: someone with many friends appears on many friend lists. The endpoint average is strictly larger than the ordinary mean unless all degrees agree. It says nothing about whether each person's friends have more connections. It also matters how you collect the lists. In a five-person star, the central person knows the other four, who know only the center. The average degree is ; a random edge end sees mean degree . If you first choose a person uniformly and then one of their friends uniformly, the answer is instead .
The edge you arrived on is already used. The excess degree counts the edges still available. Let be the probability that there are of them, and their mean, the branching factor:
For our town, , so and . At an edge end, a leaf has probability and a degree-three vertex has probability . There are zero or two ways forward, giving . A heavy tail can make this bias much stronger: if is proportional to at large , the second moment sums terms proportional to . For the limiting mean can be finite while this second moment diverges. A finite graph always cuts off that tail.
When a network looks like a tree
The configuration model gives each vertex the prescribed number of half-edges, then pairs the half-edges uniformly at random. In the large, sparse, uncorrelated model, a short exploration from a typical starting vertex, or root, resembles a tree. Each unused edge initially leads to a fresh vertex. This is an approximation about a neighborhood of fixed radius; the whole graph can still contain many cycles.
The orange edge is the one used to reach the highlighted vertex. Counting its degree gives three; counting the two green edges gives its excess degree. Across the whole drawing the first shell contains three vertices and the second shell contains four. On a network with triangles, two such branches could meet and the shell would be smaller.
There is a quantitative check on this picture. Take two neighbors of the root with and unused half-edges respectively. There are ways to pair one half-edge from each neighbor, out of roughly possible partners per half-edge. When these probabilities are small, the chance that the pair closes a triangle is about . The neighbors' excess degrees are approximately independent and each has mean . Averaging gives the expected clustering of this random neighborhood:
where is the probability that two neighbors are adjacent. At fixed and finite , this tends to zero. More generally, among a fixed number of exposed vertices with bounded degrees, the chance of any extra edge closing a loop is of order . A heavy tail, very large hubs or imposed triangles can invalidate this estimate; a numerical prediction means the approximation has broken down. In an Erdős–Rényi graph each pair is linked independently with probability , so the triangle-closing probability is exactly .
Write for the expected number of vertices at distance exactly from a random root. The first shell has mean size . Given a root of degree , the neighbors contribute an average of fresh vertices to the next shell. Average over , then repeat:
Thus can also be estimated from the relative sizes of the first two shells. For , exploring up to distance gives about distinct vertices while overlaps are rare. Matching this to a component of order suggests a typical distance of order . It is a scale estimate for random mixing, not an exact diameter; on a square grid the branches meet almost immediately.
A function for counting branches
A branching factor gives the mean number of ways forward. Sometimes we need the chance that there are none, or the chance that there are exactly four. A probability generating function (PGF) keeps all those probabilities together. For a nonnegative integer count , define
Here is a bookkeeping variable. The power records the count; its coefficient records the probability. The notation means the coefficient of . Equivalently it is , where the superscript denotes the th derivative: at zero, every other power drops out. At , by contrast, every probability contributes. Provided the relevant moments exist,
Primes are derivatives with respect to the function's input. The second derivative gives a factorial moment because differentiating twice brings down . For an ordinary moment of integer order , apply the operator repeatedly: it sends to without changing the power. Applying it times and setting gives .
Use for the degree PGF of a random vertex and for the excess-degree PGF at an edge end. Their connection is particularly useful:
Differentiating does both jobs at once: it multiplies the coefficient by to account for the sampling bias, and it reduces the power by one to remove the incoming edge. The denominator restores the total probability to one. If every vertex has degree , for example, the functions are and . For an Erdős–Rényi graph, because each of the other vertices contributes an independent edge indicator. In the sparse limit with fixed, this becomes the Poisson PGF . Its normalized derivative equals itself, so in this particular model.
Why use functions to count neighbors? For independent counts , the identity gives . Multiplication of the series sums the probabilities of all pairs of counts with the required total: it performs a convolution. If the number of independent contributions is itself random, we compose functions. Given contributions, each with PGF , the sum has PGF . If the count of contributions is independent of their sizes and has PGF , averaging over gives .
For the number of second neighbors, the outer function counts neighbors of the root. The inner function counts the fresh vertices each neighbor contributes:
The last expression includes isolated roots as well as nonisolated roots whose neighbors are all leaves. Reversing the two functions would amount to starting from a different kind of vertex.
The fraction of the network one vertex can reach
A giant component contains a nonzero fraction of all vertices as grows. Every finite graph has a largest component, but its fraction can shrink to zero. In a homogeneous random network there is normally at most one giant: two extensive pieces would have many chances to meet. For instance, take two fixed disjoint groups occupying fractions and of the vertices in a sparse Erdős–Rényi graph. The probability that none of their potential cross-links exists is approximately , exponentially small in . This explains the role of random mixing; networks with deliberately isolated populations need not behave this way.
Let be the probability that, after following a random edge and excluding that edge, the forward branch eventually dies out. If there are outgoing branches, all must fail, an event of probability under the tree approximation. This gives one equation at an edge arrival and a different one at the root:
The first equation always has the solution . To select the physical solution, begin with zero and repeatedly apply : the successive values count extinction within successively more generations. They increase to the smallest fixed point in . Starting at one would return one even when a giant exists.
The slope at one reveals the threshold. The nonnegative coefficients make increasing and convex. For , its curve lies below the diagonal just to the left of one, but at zero ; there must be a smaller intersection. For , convexity rules one out. Thus the usual giant-component criterion for an uncorrelated, locally tree-like random network is
At the ordinary branching process is critical. The deterministic exception needs separate treatment: every arrival has exactly one way forward. The usual extinction argument for a fluctuating critical process does not apply to a graph made entirely of degree-two cycles.
Back in the town, and . The extinction equation factors as . Its smaller root, , gives . A forward branch dies with probability , but a random person misses the giant with probability only : at the root all directions must fail.
For the Poisson case, the corresponding equations reduce to and , or . A positive fraction first appears for , corresponding to a pairwise edge probability of order . This global threshold is consistent with the giant having an internal mean degree close to two near onset: a connected piece with vertices needs at least edges, while the global mean also counts the many vertices outside it.
What is left outside the giant?
Even above the threshold, a randomly chosen vertex may belong to a small component. Let be the probability that a uniform vertex belongs to a finite component with exactly vertices, and let be the probability that a forward branch contains exactly . Neither is conditioned on being finite. Denote their generating functions by and . The functions count edges available; the functions count vertices reached.
At a root, the component is the root itself plus everything reached through each of its edges. At an arrival, count the vertex just reached, then its outgoing branches. The same composition rule gives
The factor counts the current vertex once. At these equations reduce to and . The missing probability mass belongs to the giant; renormalize only if you want a distribution conditional on being outside it.
For a simple check, suppose and . Then , , and . Each forward branch stops or extends one more edge with equal probability. Solving the two equations gives
The branch and the full component have different laws, even though every nonisolated component looks like a chain locally.
To find a mean size it is enough to differentiate. With , the product and chain rules give
Away from criticality, if a finite root has positive probability, its conditional mean component size is
The last step uses at the fixed point. Below threshold and the expression becomes , also the shell sum . Above threshold that unconditioned geometric series cannot be used.
There is a direct explanation for why the finite part still has a finite mean. At a root of degree , all branches must fail for the root to be outside the giant. Bayes' rule therefore changes the degree distribution to , with mean . The subscript denotes conditioning on finiteness. Given extinction of a forward branch with , its excess-degree law likewise becomes , with mean . Its expected size is . Hence , exactly the derivative result. If , this branch conditioning is undefined; any finite roots of positive density are isolated.
In the town example, only one tenth of the vertices outside the giant have degree three, although half the entire town did. Substitution gives , , and . The global branching factor exceeds one; the average number of successors inside a finite branch is only one half.
One person's component, or one component?
To compare a calculation with a graph, let be the number of finite components of size . There are vertices in those components, so for the empirical graph. The mean for a uniform component is . The mean for a uniform finite vertex is ; this is . If you divide the latter numerator by all vertices instead, the result is the unconditioned finite contribution . Two components of sizes two and eight illustrate the difference: a component chosen uniformly has mean size five, but a vertex sees mean size .
The function also gives the entire size distribution without solving explicitly for . Write for a coefficient variable. For , . For , the Lagrange inversion formula applied to yields
The indices reflect two simple steps. Removing the root's factor leaves powers to count. Differentiating once leaves and introduces the divisor . To see the inversion step, put . Then . Cauchy's coefficient formula picks out by integrating around a small circle about zero and dividing by , where is the imaginary unit. Set : the chain rule gives , and . The integral now selects . Finally gives the extra power. This local change of variable works when ; without terminal vertices, a finite tree of size at least two has zero probability in the limiting exploration.
For two vertices the coefficient is simply : both ends of the only edge must be leaves. For three it is . For four, degree two in can arise by taking once or twice, giving . A coefficient is counting ways to distribute the available edges among the vertices.
Why critical clusters have two power-law exponents
For a sparse Erdős–Rényi network, , so its coefficient of is . Inserting it above gives a particularly simple answer, also correct for the isolated vertex :
This is the mass for a uniform vertex in the sparse large-network limit, not the histogram obtained by counting each component once. When it sums to , not one. For large , Stirling's approximation shows exactly where the cutoff lies:
At the exponential factor disappears. A random vertex therefore sees a size probability proportional to , whereas the number of components per original vertex, , is proportional to . These are the same network seen through two sampling rules. Away from the threshold is positive and suppresses large finite pieces. Writing , its expansion near threshold starts with , so the characteristic cutoff grows like . Close to the transition, a handful of exceptionally large finite components can dominate a measured vertex-weighted mean.
This brings the calculation back to the original town. Following an edge weights a vertex by its degree; choosing a vertex weights a component by its size. In both cases the underlying network is unchanged. What changes is how often a particular piece of it gets counted.
← Working with NetworkX · Series index · Percolation and epidemics →
