Graph Theory formula reference

Handshake Lemma

Relates the sum of all vertex degrees in a finite undirected graph to twice its edge count.

Open in editor
LaTeX\sum_{v\in V}\deg(v)=2|E|

Variables

  • V: vertex set
  • E: edge set
  • deg(v): degree of vertex v

How to use this formula

Relates the sum of all vertex degrees in a finite undirected graph to twice its edge count.

Important notes

  • Every edge contributes one to the degree of each endpoint.
  • The number of odd-degree vertices is therefore even.

Quick example

For degrees 3, 2, 2, 1, the sum is 8, so the graph has 4 edges.

Applicability, worked calculation, and verification

Assumptions and domain checks

  • Every edge contributes one to the degree of each endpoint.
  • For the Handshake Lemma, the index variable, lower bound, upper bound, and any empty-sum or empty-product convention must be clear.
  • State whether the graph is directed, weighted, simple, connected, or finite whenever the formula depends on those properties.

Worked example

Input

Output

For degrees 3, 2, 2, 1, the sum is 8, so the graph has 4 edges.

Common mistakes

  • Do not omit the index or bounds in Handshake Lemma; changing either one changes which terms are included.
  • Verify the result of Handshake Lemma with a known case, inverse operation, dimensional check, or independent calculation before publishing it.

Continue the workflow

Use Handshake Lemma in your own work

  1. Check the domainMatch the variables and assumptions to the problem before substituting values.
  2. Copy the exact notationPreserve grouping, signs, and exponents in \sum_{v\in V}\deg(v)=2|E|.
  3. Edit or convertOpen the expression in the LaTeX editor, then export it for your document or web page.

Review and verification

Last reviewed: 2026-07-23

Automated quality check: Kept noindex until the missing evidence is supplied.

Formula references

Frequently asked questions

What is the Handshake Lemma used for?

Relates the sum of all vertex degrees in a finite undirected graph to twice its edge count.

Can I copy this formula as LaTeX?

Yes. Copy \sum_{v\in V}\deg(v)=2|E| or open it in the LaTeX editor.

What should I check before using it?

Confirm that each variable, unit, domain restriction, and assumption matches the problem.

Reuse, attribution, and correction

Share this reference without losing its source

Copy a citation, permanent link, Markdown link, or self-contained embed card. Each reusable format points readers back to the maintained canonical page.

Report an issue

Search the whole reference

Symbols, formulas, guides, tools and commands

Start typing to search.

move · Enter open · Esc close