ConceptComplete

Graphs and Basic Definitions

Graph theory forms the mathematical foundation for studying networks, relationships, and structures across computer science, operations research, and discrete mathematics. A graph provides an abstract model for representing pairwise relationships between objects.

DefinitionGraph

A graph G=(V,E)G = (V, E) consists of:

  • A finite set VV of vertices (or nodes)
  • A set E⊆{{u,v}:u,v∈V,u≠v}E \subseteq \{\{u,v\} : u,v \in V, u \neq v\} of edges

Each edge connects two distinct vertices. If edge e={u,v}e = \{u,v\}, we say uu and vv are adjacent and that ee is incident to both uu and vv.

The number of vertices ∣V∣=n|V| = n is the order of the graph, while ∣E∣=m|E| = m is its size. For vertex v∈Vv \in V, the degree deg⁡(v)\deg(v) counts the number of edges incident to vv. The neighborhood N(v)={u∈V:{u,v}∈E}N(v) = \{u \in V : \{u,v\} \in E\} consists of all vertices adjacent to vv.

DefinitionSpecial Graphs
  • Complete graph KnK_n: Every pair of distinct vertices is adjacent (m=(n2)m = \binom{n}{2})
  • Empty graph Kn‾\overline{K_n}: No edges (m=0m = 0)
  • Path graph PnP_n: Vertices v1,v2,…,vnv_1, v_2, \ldots, v_n with edges {vi,vi+1}\{v_i, v_{i+1}\} for i=1,…,n−1i = 1, \ldots, n-1
  • Cycle graph CnC_n: Path PnP_n with additional edge {vn,v1}\{v_n, v_1\} (requires n≥3n \geq 3)
  • Bipartite graph: Vertex set partitions as V=A∪BV = A \cup B where all edges connect vertices from AA to BB
ExampleComplete Bipartite Graph

The complete bipartite graph K3,3K_{3,3} has vertex sets A={a1,a2,a3}A = \{a_1, a_2, a_3\} and B={b1,b2,b3}B = \{b_1, b_2, b_3\} with all nine possible edges between AA and BB. This graph is non-planar and plays a crucial role in Kuratowski's theorem.

A subgraph H=(V′,E′)H = (V', E') of GG satisfies V′⊆VV' \subseteq V and E′⊆EE' \subseteq E. If E′E' contains all edges from EE with both endpoints in V′V', then HH is an induced subgraph, denoted G[V′]G[V'].

Remark

The handshaking lemma states that ∑v∈Vdeg⁡(v)=2m\sum_{v \in V} \deg(v) = 2m, since each edge contributes 2 to the total degree sum. This implies that every graph has an even number of odd-degree vertices.

Graph isomorphism captures structural equivalence: graphs G1=(V1,E1)G_1 = (V_1, E_1) and G2=(V2,E2)G_2 = (V_2, E_2) are isomorphic (written G1≅G2G_1 \cong G_2) if there exists a bijection ϕ:V1→V2\phi: V_1 \to V_2 preserving adjacency. Understanding graph structure through invariants like degree sequences and symmetries is fundamental to graph theory.