Discretica

Graph Theory

Reference · Always free

Study graphs, paths, trees, and algorithms - the mathematics of networks and connections.

Concepts in this topic

  • Graph BasicsLearn the fundamental terminology and types of graphs
  • Paths & ConnectivityExplore paths, circuits, Euler paths, and Hamilton paths
  • TreesLearn about trees, spanning trees, and their properties
  • Graph AlgorithmsLearn BFS, DFS, shortest paths, and minimum spanning trees

Key formulas & identities

Key formulas and identities for Graph Theory, with each formula and what it means.
NameFormulaMeaning
Handshaking Theorem∑ deg(v) = 2|E|The sum of all vertex degrees equals twice the number of edges
Edges in Complete Graph|E(Kₙ)| = n(n-1)/2A complete graph on n vertices has n(n-1)/2 edges
Tree Edge Count|E| = |V| - 1 (for any tree)A tree with n vertices always has exactly n - 1 edges
Euler Circuit ConditionEuler circuit exists ⟺ connected ∧ every vertex has even degreeA connected graph has an Euler circuit if and only if all vertices have even degree
Euler Path ConditionEuler path exists ⟺ connected ∧ exactly 0 or 2 vertices have odd degreeA connected graph has an Euler path if it has exactly 0 or 2 vertices with odd degree
Cayley's FormulaNumber of labeled trees on n vertices = nⁿ⁻²The number of distinct labeled spanning trees of the complete graph Kₙ
Complete Bipartite Edges|E(Kₘ,ₙ)| = m × nA complete bipartite graph Kₘ,ₙ has m × n edges