Graphs, Degree and Trees

Stage 23 of 23 Strand 1 of 5 4 lessons

4 illustrated lessons, each teaching the why before the how.

Start with Vertices, Edges and Degree in the app →
Revise Graphs, Degree and Trees with flashcards →

Jump to a lesson

Vertices, Edges and Degree

The degrees always total twice the edges.

A graph is vertices joined by edges, and a degree counts the edge ends at one vertex

Read the full lesson →

ABCDE

A graph is a set of vertices, drawn as dots, joined by edges, drawn as lines.

AB3CDE

The degree of a vertex counts the edges meeting it, so B has degree 3.

A2B3C3D3E1

Every vertex carries its own degree: 2, 3, 3, 3 and 1.

A2B3C3D3E1

Those degrees total 12, and this graph has 6 edges. Twelve is twice six.

ABCD3E1

One edge adds 1 at each of its two ends, so the degrees always total twice the edges.

Now you

ABCDDegree4343

These are the degrees of a graph. How many edges does it have?

ABCDE

What is the degree of vertex D?

Simple, Complete and Bipartite Graphs

Graphs named by the pattern of their edges.

A simple graph has no loop and no repeated edge, and a complete graph joins every pair

Read the full lesson →

ABC

A joins itself with a loop, and two separate edges both join B to C.

ABC

Take both away and the graph is simple: no loop, and at most one edge per pair.

ABCD

A complete graph joins every pair. Four vertices give 6 edges, and every degree is 3.

ABCD

Each of n vertices meets n − 1 others, and each edge is counted twice: n(n − 1)/2.

ABCXY

A bipartite graph splits the vertices into two sets, and every edge crosses between them.

Now you

ABC

Is this graph simple?

ABCD

How many edges does the complete graph on 4 vertices have?

Subgraphs, Connectedness and Trees

Connected, no cycle, one edge fewer than vertices.

A tree is a connected graph with no cycle, so it has one fewer edge than it has vertices

Read the full lesson →

ABCDEF

A graph is connected when a route joins every pair of vertices. This one is not.

ABCDEF

One more edge joins the two pieces, and now every vertex can reach every other.

ABCDEF

A subgraph keeps some of the vertices and some of the edges, and nothing else.

ABCDEF

This subgraph is a tree: connected, and exactly one route between any two vertices.

A1B2C3D4E5F6

There are six vertices and five edges. A tree always has one fewer edge than vertices.

ABCDEF

The dashed edge would close the cycle A-B-C, so the result would not be a tree.

Now you

ABCDEF

Is this graph connected?

ABCDEF

How many edges must be removed to leave a tree?

Directed Graphs and Strong Connectedness

Arrows in, arrows out, and where they let you go.

A directed edge points one way, giving each vertex an in-degree and an out-degree

Read the full lesson →

ABCD

A directed graph gives every edge a direction, drawn as an arrow.

ABin 1, out 2CD

Arrows arriving give the in-degree and arrows leaving give the out-degree.

A1, 1B1, 2C2, 1D1, 1

Every arrow leaves one vertex and arrives at another, so both totals come to 5.

ABCD

Following the arrows, A to B to D to C and back to A reaches every vertex: the graph is strongly connected.

ABCD

Turn one arrow around and nothing reaches A, so the graph is no longer strongly connected.

Now you

ABCD

What is the out-degree of vertex B?

ABCD

Is this directed graph strongly connected?

Continue your journey in the app — save your progress