A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Graph Condensation and Metagraph

College Depth 78 in the knowledge graph ☐ I know this ☆ Set as goal
416prerequisites beneath it
See this on the map →
Strongly Connected Components→
directed-graphs components structure

Core Idea

The condensation (or metagraph) of a digraph contracts each strongly connected component to a single vertex, creating a DAG. This transformation simplifies the structure of complex digraphs and reveals their layered organization. The condensation is unique and is itself a DAG.

Explainer

You already know that a strongly connected component (SCC) is a maximal set of vertices where every vertex can reach every other. Now imagine zooming out: instead of seeing individual vertices, you see whole SCCs as single blobs. The graph you get by collapsing each blob to a point is the condensation (also called the metagraph or DAG of SCCs).

Why is the condensation always a DAG? Suppose it had a cycle — say SCC A could reach SCC B and SCC B could reach SCC A. Then every vertex in A could reach every vertex in B and vice versa, meaning A and B were actually one larger SCC, contradicting the assumption that they were separate. So no cycles can exist in the condensation. Every directed graph, no matter how tangled, has a unique condensation that is a DAG.

This is powerful because DAGs are much easier to work with than general digraphs. DAGs have topological orderings, no circular dependencies, and admit efficient dynamic programming. The condensation lets you "factor out" the cyclic complexity of a graph: first understand the structure among SCCs (which ones can reach which others), then separately analyze the internal structure within each SCC. This two-level view is especially useful in compiler design (dependency resolution), deadlock analysis, and anywhere you need to find a linear order in a system with loops.

Concretely, consider a digraph with six vertices where vertices {1,2,3} all reach each other, {4,5} all reach each other, and vertex 3 has an edge to 4, and vertex 5 has an edge to 6. The condensation has three nodes — call them A={1,2,3}, B={4,5}, C={6} — with edges A→B and B→C. This tiny DAG reveals that A is a "source" SCC, B is a "middle" layer, and C is a "sink" SCC. The topological order A,B,C tells you the flow of reachability through the whole system.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Literal Equations → Slope-Intercept Form → Point-Slope Form → Writing Linear Equations → Parallel and Perpendicular Line Slopes → Graphing Linear Equations → Piecewise Functions → Step Functions → Composition of Functions → Inverse Functions → Radical Functions and Graphs → Rational Exponents → Exponential Functions and Graphs → Logarithms Introduction → Big-O Notation and Asymptotic Analysis → Depth-First Search (DFS) → Strongly Connected Components → Graph Condensation and Metagraph

Longest path: 79 steps · 416 total prerequisite topics

Prerequisites (1)

Leads To (0)

No topics depend on this one yet.