Definition

A tree is a Graph that contains no cycles. Equivalently, a tree is a connected graph in which any two vertices are connected by exactly one path.

Properties

  • A tree with vertices has exactly edges.
  • Removing any edge from a tree disconnects it into two components.
  • Adding any edge to a tree creates exactly one cycle.

Remarks

Note that the data structure of a tree typically refers to a rooted tree.