liveBook · Manning

Spanning subgraph

As explained in Advanced Algorithms and Data Structures

A spanning subgraph is a subgraph that contains every vertex of its original graph and a subset of its edges.

A spanning subgraph keeps every vertex of an original graph while retaining only a subset of its edges. Removing one edge at a time therefore produces spanning subgraphs, unlike removing a vertex, which produces an induced subgraph. section 15.2.3

In recursive planarity testing, spanning subgraphs represent the branch obtained by deleting each possible edge. The algorithm tests these smaller graphs recursively alongside graphs formed by deleting vertices. section 15.2.3

For a graph G=(V,E), spanning-subgraph generation follows this pattern:

  • Keep V unchanged. section 15.2.3
  • Remove an edge e from E to form (V, E−{e}). section 15.2.3
  • Repeat recursively, stopping when a planarity test reaches a base case or detects a non-planar structure. section 15.2.3

Counting the search space

A graph with m edges has 2^m spanning subgraphs because each edge can independently be retained or removed. Recursive edge-deletion algorithms can therefore encounter exponentially many possibilities. section 15.2.4

(V’,E’)=({2,3}, E-{1}), ({1,3}, E-{2}), ({1,2}, E-{3})

Shows the three spanning subgraphs produced by removing one of three edges while preserving the full vertex set. section 15.2.4

How Advanced Algorithms and Data Structures covers it

How deep it goes
Explains vertex preservation, edge deletion, recursive generation, and exponential counts, but not graph-representation internals.
Examples
Demonstrates edge removals from a three-edge graph and counts 2^m possible spanning subgraphs.
What it assumes
Assumes basic graphs with vertices and edges, while distinguishing induced subgraphs from edge-deleted spanning subgraphs.
What you can do after
Evaluate planarity by generating edge-deleted subgraphs and recognizing their exponential search cost.
How it connects
Connects spanning subgraphs with induced subgraphs, graph planarity, recursion, memoization, and Euler's inequalities.

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.