Graphs, Degree and Trees

Stage 23 of 23 Strand 1 of 5 4 lessons

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

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

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

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

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

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

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

Now you

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

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

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

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

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

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

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

Now you

Is this graph simple?

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

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

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

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

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

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

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

Now you

Is this graph connected?

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

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

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

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

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

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

Now you

What is the out-degree of vertex B?

Is this directed graph strongly connected?

Continue your journey in the app — save your progress