Directed Exponential Random Graph Model

Machine Learning
Introduced by
Frank, O. & Strauss, D.; extended by Robins, Pattison, Kalish & Lusher
Year
1986 (foundations); 2007 (modern directed ERGM formulation)
Type
Statistical generative model for directed networks
Family
Network science

What does it do?

The Directed Exponential Random Graph Model (Directed ERGM) is a family of statistical models for directed networks.

It gives the probability of observing a particular directed graph as a function of structural configurations, such as reciprocity, transitive triads and in-degree spread, together with node or dyad covariates. Its main use is inference about the social processes that generate directed ties.

The intuition behind the method

Imagine trying to explain why person A follows person B on a social platform. The answer might involve homophily (they share attributes), reciprocity (B also follows A), or triadic closure (A follows someone who follows B). A directed ERGM formalises exactly this reasoning: it treats the entire observed network as a single outcome and estimates how much each structural pattern — directed triangles, in-stars, mutual ties — and covariate effect contributes to making that particular network more or less probable compared to all possible networks on the same node set. The direction of ties matters throughout, so in-degree and out-degree, transitive closure, and anti-transitive patterns are modelled separately.

History

Frank and Strauss (1986) introduced Markov graph models, the dependence-based framework from which ERGMs (p* models) developed; their formulation was for undirected graphs. Extensions of this framework to directed networks and richer dependence assumptions followed later. Robins, Pattison, Kalish and Lusher (2007; published online 2006) give a general introduction to exponential random graph (p*) models for social networks, covering both the models and their estimation by MCMC; it is a general introduction, not the origin of the directed formulation. Implementations in the statnet suite for R, and in the PNet program, have made these models widely available.

When to use it

Choose a directed ERGM when the research question concerns the processes that produce directed ties and tie direction carries substantive meaning, as in citation, advice-seeking, following or dominance networks. It suits settings where the analyst wants to estimate covariate effects while controlling for structural tendencies such as reciprocity and transitive closure. Avoid it for very large networks, where MCMCMLE estimation becomes impractical without specialist approximations, and use a standard ERGM when ties are undirected. It is also the wrong tool when the main goal is community detection or prediction rather than generative inference, or when the sampler does not converge, which often signals a degenerate specification.

Limitations and considerations

  • MCMCMLE estimation becomes computationally demanding as the number of nodes grows, and approximation or sub-network strategies are needed for large networks.
  • Degeneracy, in which the fitted model puts most of its probability on nearly empty or nearly complete graphs, is a common failure and usually requires reformulating the specification.
  • Because the normalising constant is intractable, exact likelihood-ratio tests are not available; comparisons rely on approximate criteria such as AIC and BIC, which should be read alongside goodness-of-fit checks.
  • Coefficients depend on which configurations are included, so different specifications of the same network can support different substantive conclusions.
  • Models for ties observed over time need temporal extensions (TERGM), which add further estimation complexity.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Models structural tendencies and covariate effects jointly, so an attribute effect is estimated net of reciprocity and triadic closure rather than in isolation.
  • Keeps in-degree and out-degree effects, reciprocity, transitive triads and cyclic triads as separate terms, which undirected models would merge.
  • Coefficients are log-odds terms with standard errors, so each structural tendency and covariate has an explicit, testable parameter.
  • Because it is a full probability model, the fitted specification can be compared with alternatives and assessed with simulation-based goodness-of-fit checks.

Applications

  • Modelling citation and advice networks in organisations to identify drivers of directed knowledge flows.
  • Analysing social media following networks to test reciprocity and homophily hypotheses.
  • Studying dominance hierarchies in animal behaviour networks where tie direction signals status.
  • Examining directed collaboration tie formation in bibliometric and co-authorship networks.
  • Investigating influence and vote-seeking networks in legislative bodies.
  • Modelling directed trade or migration flows between countries while controlling for geographic and economic covariates.

How it works

How it works

1

The model defines a probability distribution over all directed graphs on a fixed set of n nodes. The probability of an observed graph y is proportional to exp(theta transposed times g(y)), where g(y) is a vector of network statistics such as arc count, reciprocity and transitive triads. The normalising constant kappa(theta) sums this quantity over every possible directed graph on the same node set, which is why it is generally intractable.

Formula
P(Y=y) = \frac{\exp(\theta^\top g(y))}{\kappa(\theta)}
2

The analyst chooses which configurations enter g(y). Arcs capture overall density, mutual dyads capture reciprocity, directed k-star counts describe the spread of in-degree and out-degree, and directed triangle terms capture transitive and cyclic closure. Node-level or dyad-level covariates, such as attribute similarity or geographic proximity, can be added alongside these structural terms. Each term should have a theoretical rationale, because the chosen terms determine what the model can and cannot explain.

3

Because kappa(theta) cannot be computed exactly for networks of realistic size, parameters are usually estimated by Markov chain Monte Carlo maximum likelihood (MCMCMLE) or by Bayesian MCMC. The sampler draws random directed graphs at the current parameter values, and the parameters are updated iteratively until the statistics of the simulated networks match those of the observed network.

4

Before interpreting estimates, trace plots and autocorrelations of the sampled statistics are inspected to check that the chain has mixed adequately. Estimates are reported as log-odds coefficients, each conditional on all other terms in the model. A positive reciprocity coefficient indicates that mutual ties are more likely than the other terms alone would predict. A negative coefficient on a cyclic triad term indicates that cyclic configurations are less likely than the other terms imply, and its meaning depends on which other triad terms are included.

5

Networks simulated from the fitted model are compared with the observed network on statistics that are not directly in the model, such as degree distributions, geodesic distances and the triad census. Poor agreement on these auxiliary statistics suggests that important configurations are missing from the specification.

Common pitfalls

  • Adding directed triangle terms without their lower-order counterparts (arcs, reciprocity, k-stars) is a frequent cause of degeneracy.
  • Reporting coefficients from a fit with failed convergence diagnostics or poor goodness-of-fit simulations.
  • Pooling transitive, cyclic and mixed directed triangle configurations into one count, although they carry different social interpretations.
  • Reading node-attribute coefficients as independent effects without checking whether the structural terms absorb the same variation.
  • Comparing coefficient magnitudes across networks of different sizes or densities without accounting for those differences.

Frequently asked questions

What distinguishes a directed ERGM from a standard undirected ERGM?

In a directed ERGM every potential tie between nodes i and j is represented as two separate arcs, i to j and j to i, each with its own probability. This allows the model to estimate reciprocity, in-degree spread, out-degree spread and distinct directed triangle subtypes separately, which collapse or disappear when ties are treated as undirected.

How do I handle model degeneracy?

Degeneracy arises when the model assigns almost all probability to nearly empty or nearly complete graphs. It typically results from including Markov-type triangle or star counts that make the model unstable. Start with a sparse model, add configurations one at a time, and always inspect goodness-of-fit simulations before reporting. Geometrically weighted (curved) terms are often used to improve stability, but the directed versions of such terms must be chosen and checked separately for your network; terms defined for undirected graphs, such as GWESP, should not be applied to directed data without checking how they treat tie direction.

Can I apply directed ERGM to a network with thousands of nodes?

Standard MCMCMLE becomes impractical as networks grow large, and the practical limit depends on the chosen terms and the sampler. For large networks, consider snowball-sampled sub-network estimation or contrastive divergence approximations, or alternative generative models such as the stochastic block model, which scales more easily to large graphs.

What software supports directed ERGM estimation?

The statnet suite in R, principally the ergm package, supports directed networks through directed network objects. PNet is a separate program that is also used for these models.

How should I interpret a positive reciprocity coefficient?

A positive reciprocity coefficient means that, conditional on the other included terms and the overall density, a pair of nodes is more likely to form a mutual tie than those terms alone would predict. In practical terms, knowing that A sends a tie to B increases the estimated probability that B also sends a tie to A, given the other modelled effects.

How are covariates specified for directed ties?

A node attribute can act as a sender effect (it changes the tendency to send ties), a receiver effect (it changes the tendency to receive ties), or both, and each is a separate term with its own coefficient. Dyad-level covariates, such as distance or a second network, enter as a statistic on each possible arc. Interpret each effect separately, conditional on the other terms.

Related methods

Sources

  1. Robins, G., Pattison, P., Kalish, Y. & Lusher, D. (2007). An introduction to exponential random graph (p*) models for social networks. Social Networks, 29(2), 173-191.

    Open DOI reference
  2. Frank, O. & Strauss, D. (1986). Markov graphs. Journal of the American Statistical Association, 81(395), 832-842.

    Open DOI reference