Practice Discrete Math

Graphs / Trees

Least You Need to Know: Trees

A tree is a connected graph with **no cycles**. In a tree with n vertices, the number of edges is always n-1.

The least you need to know

Key notation

n number of vertices
n-1 edge count in a tree
leaf vertex of degree 1

Tiny worked example

  • A tree has 7 vertices.
  • Then it has 6 edges.
  • If you add one new edge between two existing vertices, you create one cycle.

Common mistakes

How to recognize this kind of problem

Next recommended lesson

Try Least You Need to Know: Basic Graphs next for a nearby refresher.

Least You Need to Know: Basic Graphs

Related lessons

Keep going with nearby lessons in the same topic.

More ways to explore

Start practice