LOGBOOK

HELP

Quiz Entry - updated: 2026.11.27

What is a subgraph, and what makes a subgraph spanning?

A subgraph $S$ of $G$ consists of some of $G$'s vertices and some of $G$'s edges, where every edge of $S$ joins two vertices of $S$. A spanning subgraph keeps all vertices of $G$ and may drop edges.

A subgraph using three of G's five vertices, and a spanning subgraph using all five vertices but only some edges

* Dashed parts belong to G but not to the subgraph. *

A subgraph has to be a graph in its own right, so it may not keep an edge whose end vertex it dropped. Within that rule any selection works: the left example keeps A, C and D with the three edges among them.

"Spanning" means reaching every vertex. A spanning subgraph is what remains after deleting edges only, never vertices: for example the roads still open in winter, when every village must stay in the network. Whether everything stays reachable is a separate question, connectivity, and the most economical connected spanning subgraph is a spanning tree.

Go deeper:

From Quiz: ADS / Graphs: Basics, Representations and Spanning Trees | Updated: Nov 27, 2026