Graph Theory formula reference

Complete Graph Edge Count

Counts the edges in a simple complete graph on n vertices.

Open in editor
LaTeX|E(K_n)|=\frac{n(n-1)}{2}

Variables

  • K_n: complete graph on n vertices
  • n: number of vertices

How to use this formula

Counts the edges in a simple complete graph on n vertices.

Important notes

  • Every unordered pair of distinct vertices determines one edge.
  • Loops and repeated edges are excluded.

Quick example

K_5 has 5·4/2=10 edges.

Applicability, worked calculation, and verification

Assumptions and domain checks

  • Every unordered pair of distinct vertices determines one edge.
  • For the Complete Graph Edge Count, every denominator must be nonzero, and the numerator and denominator must remain correctly grouped.
  • State whether the graph is directed, weighted, simple, connected, or finite whenever the formula depends on those properties.

Worked example

Input

Output

K_5 has 5·4/2=10 edges.

Common mistakes

  • When copying Complete Graph Edge Count, keep the complete numerator and denominator grouped; a missing brace or parenthesis changes the result.
  • Verify the result of Complete Graph Edge Count with a known case, inverse operation, dimensional check, or independent calculation before publishing it.

Continue the workflow

Use Complete Graph Edge Count 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 |E(K_n)|=\frac{n(n-1)}{2}.
  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 Complete Graph Edge Count used for?

Counts the edges in a simple complete graph on n vertices.

Can I copy this formula as LaTeX?

Yes. Copy |E(K_n)|=\frac{n(n-1)}{2} 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