maths.free › Combinatorics & Graph Theory › Graphs: vertices, edges, degrees

Graphs: vertices, edges, degrees

The basic objects of graph theory and the handshake lemma.

A graph is a set of vertices with edges between some pairs. The handshake lemma: the degrees sum to twice the number of edges, so the number of odd-degree vertices is even. Picture it: dots and lines; a complete graph on 5 vertices has 10 edges, which is 5 choose 2. Think it: graphs are relations drawn; the adjacency matrix makes them linear algebra.

Worked example · sum of k for k = 1 to 5

Sum k for k = 1 to 5

\sum_{k=1}^{5} k

Step by step

  1. \sum_{k=1}^{5} k

    Write the sum out.

  2. 1 + 2 + 3 + 4 + 5

    Expand the terms.

  3. = 15

    Closed form.

Reveal the answer
15

Now you Pick a problem, or type or draw your own. Every step, a picture, the answer hidden until you ask.

Keep your own working

A free account adds notes on every lesson, a record of what you have finished, your solved problems in one place, and a tutor you can ask about this page. The maths itself is open to everyone, signed in or not.

Sign Up Login

Symbols used here

Tap any symbol for the full definition, a picture, and what every letter in it means.

How to: Graphs: vertices, edges, degrees

  1. Write the sum out.
  2. Expand the terms.
  3. Closed form.

Questions people ask

Permutation or combination?

Ask whether order matters. A lock code is a permutation (order matters); a hand of cards is a combination (it does not).

What is a graph in this sense?

Dots (vertices) joined by lines (edges), not a plot. Road maps, social networks and molecules are graphs; questions like "is there a route" and "how few colours" are graph theory.

More in Combinatorics & Graph Theory