liveBook · Manning

Induced subgraph

As explained in Advanced Algorithms and Data Structures

An induced subgraph is the graph formed by selecting a subset of vertices and retaining every original edge whose endpoints are both selected.

An induced subgraph is formed by selecting vertices from a graph and retaining every original edge whose endpoints both remain selected. Removing a vertex therefore removes that vertex and all incident edges, while preserving all edges among the surviving vertices. section 15.2.3

In recursive planarity testing, induced subgraphs provide one decomposition branch: remove each vertex in turn, then test the resulting graph. This contrasts with spanning subgraphs, which remove edges while retaining the vertex set. section 15.2.3

Removing vertices recursively

Given vertices {1, 2, 3}, removing vertex 1 produces the subgraph on {2, 3}; removing vertex 2 produces the subgraph on {1, 3}; removing vertex 3 produces the subgraph on {1, 2}. Each result keeps exactly the original edges whose endpoints remain. section 15.2.3

Use induced subgraphs in recursive graph algorithms by:

  • Selecting a vertex to remove. section 15.2.3
  • Constructing the induced subgraph on the remaining vertices. section 15.2.3
  • Applying the recursive test and stopping early when a base case or non-planarity condition is reached. section 15.2.3
  • Caching results so each distinct subgraph is examined at most once. section 15.2.4

How Advanced Algorithms and Data Structures covers it

How deep it goes
Defines vertex removal and retained edges, then applies the structure recursively but defers specialized induced-subgraph algorithms.
Examples
Demonstrates removing each vertex from a three-vertex graph and counting 2^n possible induced subgraphs.
What it assumes
Assumes graph vertices, edges, and recursion while distinguishing induced subgraphs from edge-deleted spanning subgraphs.
What you can do after
Diagnose planarity recursively by generating vertex-induced subproblems and recognizing their exponential search-space cost.
How it connects
Connects induced subgraphs to graphs, spanning subgraphs, recursive decomposition, planarity testing, and memoization.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Advanced Algorithms and Data Structures. The section links point to the parts of the book it draws on.