SECTION 5.4 Introduction to Trees
| Tree | A graph is called a tree, if, and only if, it doesn't contain a circuit and it is connected. |
| Trivial tree | A graph that consists of a single vertex is called a trivial tree. |
| Empty tree | A tree that does not have any vertices or edges is an empty tree. |
| Terminal vertex | Let t be a tree. A vertex of degree 1 in t is called a terminal vertex or a leaf. |
| Internal vertex | Let t be a tree. A vertex of degree greater than 1 in t is called an internal vertex or a branch vertex. |
For the following graph:
|
![]() |
Exercise: Determine which of the following graphs are trees and which are not.

There are many situations in which trees arise. Some common examples include:
1. Family Trees

A rooted tree is illustrated in the following diagram.
|
![]() |
| Binary tree | A binary tree is a rooted tree in which every internal vertex has at most two children. |
| Left and right children | Each child in a binary tree is either a left child or a right child, and each internal vertex has at most one left and one right child. |
| Full binary tree | A full binary tree is a binary tree in which each internal vertex has exactly two children. |
| Left and right subtrees | Given an internal vertex v of a binary tree T, the left subtree of v is the binary tree whose root is the left child of v, whose vertices consist of the left child of v and all its descendants, and whose edges consist of all those edges of T that connect the vertices of the left subtree together. The right subtree of v is defined analogously. |
Other properties:
For the following binary tree:
|
![]() |