Recall that a connected graph contains at least one subgraph that is a tree. If the tree connects all the vertices within the graph, it is called a spanning tree.

Properties

  • If the graph has nodes, the spanning tree will have edges.

Types

Example

A connected graph on the top, and the spanning tree on the bottom.