ArticleslgStudy

computer science

Configuration model

Configuration model is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Configuration model rather than just read about it. In short: In network science, the Configuration Model is a family of random graph models designed to generate networks from a given degree sequence. Unlike simpler models such as the Erdős–Rényi model, Configuration Models preserve the degree of each vertex as a pre-defined property.

Configuration model — main illustration
Configuration model — illustration

Key takeaways

  • Configuration model belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Configuration model to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Configuration model from memory before moving on to harder problems.

Reference excerpt

In network science, the Configuration Model is a family of random graph models designed to generate networks from a given degree sequence. Unlike simpler models such as the Erdős–Rényi model, Configuration Models preserve the degree of each vertex as a pre-defined property. This flexibility allows the modeler to construct networks with arbitrary degree distributions, making it widely used as a reference model for real-life networks, particularly in social, biological, and technological domains. The concept of "Configuration Model" was first introduced by Béla Bollobás, who laid the foundation for its application in graph theory and network science.

Rationale for the model The key advantage of the Configuration Model lies in its ability to decouple the degree sequence from specific edge generation processes. This makes it suitable for analyzing networks with heterogeneous degree distributions, such as scale-free networks, which exhibit heavy-tailed degree distributions. By preserving these structural properties, Configuration Models provide a null hypothesis for understanding the role of degree distributions in shaping network properties. Configuration Models can be specified for different types of graphs:

Simple graphs: Graphs without self-loops or multi-edges. Multi-edge graphs: Graphs allowing multiple edges between the same pair of nodes. Loopy graphs: Graphs that include self-loops (edges connecting a node to itself). Directed graphs: Models with specified in-degrees and out-degrees for each node. Undirected graphs: Models that consider the total degree of each node.

Configuration Models The family of Configuration Models can be categorized into two main groups:

Microcanonical Configuration Models: Fix the degree sequence exactly. Canonical Configuration Models: Fix the degree sequence in expectation.

Micro-Canonical Configuration Model The Micro-Canonical Configuration Model is the most common variation of the configuration model. It exactly preserves the degree sequence of a given graph by assigning stubs (half-edges) to nodes based on their degrees and then randomly pairing the stubs to form edges. The preservation of the degree sequence is exact in the sense that all realizations of the model result in graphs with the same predefined degree distribution. This variation is referred to as micro-canonical because it defines a uniform probability space where all possible graphs consistent with the given degree sequence are equally likely to be sampled. This approach ensures that the degree sequence is strictly maintained. The model can be formalized as stub-labelled model, where stubs are explicitly labelled and paired; alternatively, it can be formalised as a vertex-labelled models, where edges between vertices are indistinguishable.

Canonical Configuration Models Canonical Configuration Models relax the exact degree sequence constraint and preserve it only in expectation. These models define probability distributions over the edges of the network. Canonical configuration models are often referred to as soft configuration models.

Chung-Lu Configuration Model The Chung-Lu Configuration Model is a canonical configuration model variant for simple graphs (i.e., without multi-edges). It assumes that edges between nodes are independent from each other, differently from the micro-canonical model. The probability of an edge between nodes i and j is proportional to the product of their degrees and, in the case of a loopy undirected graph, is given by: pij=kikj2m, where ki and kj are the degrees of nodes i and j, and m is the total number of edges in the graph. In this formulation, the expected degree sequence matches the input degrees, but the actual degree sequence in any realization may vary slightly due to the probabilistic nature of edge formation.

Application: Modularity Calculation The Chung-Lu configuration model, provides the benchmark in the calculation of network modularity. Modularity measures how well a network is divided into modules or communities, comparing the observed structure against a null model: the configuration model. The modularity is computed as: Q=12L∑i≠j(Aij−kikj2L)δ(Ci,Cj), where:

Aij is the adjacency matrix of the observed network, with Aij=1 if there is an edge between i and j, and Aij=0 otherwise. kikj2L represents the expected probability of an edge between nodes i and j under the configuration model. δ(Ci,Cj) is the Kronecker delta, equal to 1 if nodes i and j are in the same module and 0 otherwise. This equation compares the observed network to the configuration model, where edges are distributed based solely on the degree sequence. Modularity scores provide insights into the quality of community structures in the network, with higher scores indicating stronger modularity. For further details, refer to the page on modularity.

Norros-Reittu Configuration Model The Norros-Reittu Configuration Model extends the Chung-Lu configuration model by allowing for multi-edges between nodes. In this model, the number of edges between nodes i and j follows a Poisson distribution, given by: P(Eij=k)=λijke−λijk!, where λij is the expected number of edges between nodes i and j, defined as: λij=kikj2m. Here: ki and kj are the degrees of nodes i and j, respectively. m is the total number of edges in the graph. As for Chung-Lu configuration model, nodes pairs are assumed to be independent from each other.

Connection to Degree-Corrected Stochastic Block Model The Norros-Reittu Configuration Model is particularly important as it provides the degree correction for the Degree-Corrected Stochastic Block Model (DC-SBM). By incorporating the degree sequence into the edge probability, this model allows the DC-SBM to distinguish between structural patterns in communities and variations driven by node degrees. This degree correction ensures that the observed degree heterogeneity in networks does not bias the identification of community structures.

… excerpt ends here. Continue reading the full article.

Illustrations

Configuration model: Figure 1. Degree sequence and different network realizations in the configuration model[1]
Figure 1. Degree sequence and different network realizations in the configuration model[1]
Configuration model illustration
Configuration model: Directed configuration model
Directed configuration model

Worked examples

Example 1 — a first encounter with Configuration model

Start with the simplest possible case. Write down what Configuration model claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Configuration model before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Configuration model ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Configuration model

In research
Configuration model appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Configuration model in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Configuration model is common in secondary-school and first-year university syllabi. It links to neighbouring topics Networks, so understanding it makes those chapters shorter.
In everyday life
Look for Configuration model outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Configuration model” →

How to study Configuration model in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Configuration model means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Configuration model out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Configuration model in simple terms?

In network science, the Configuration Model is a family of random graph models designed to generate networks from a given degree sequence. Unlike simpler models such as the Erdős–Rényi model, Configuration Models preserve the degree of each vertex as a pre-defined property.

Why does Configuration model matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Configuration model?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Configuration model.

Tags

  • Networks

Keep exploring