Skip to main content

Section 6.1 Graph basics

Definition 6.1.1. Graph.

A graph is an ordered pair Γ=(V,E), where V is a set of vertices and E is a set of edges, where edges are unordered pairs of distinct vertices. That is,
E{{u,v}:u,vV}.
In order to simplify notation, we will write uv instead of {u,v} for an edge.

Remark 6.1.2.

There are many, many different formulations for the definition of a graph. Some definitions are suffiently relaxed that an edge can loop back from a vertex to itself — these are generally called loops. Likewise, edges can be defined as independent objects with endpoints, which allows for more than one edge to have vertices u and v as endpoints. We make the distinction that graphs which have loops or multiple edges are multigraphs. In fact some graph theorists extend the definition even further to allow edges to have more than two vertices

Example 6.1.3. The Petersen graph.

A famous example of a graph is the Petersen graph, Π. Here it is drawn with its vertex set consisting of the collection of subsets of size 2 of the set {0,1,2,3,4}, with an edge between vertices if and only if they are disjoint as sets. This labeling of the Petersen graph is convenient for several application in algebraic graph theory.

Definition 6.1.4. Adjacent and incident.

Two vertices v0,v1V(Γ) are adjacent if and only if v0v1E(Γ). An edge eE(Γ) is incident with a vertex v0V(Γ) if and only if there is another vertex v1V(Γ) such that v0v1=e.

Definition 6.1.5. Vertex degree.

The degree of a vertex vV(Γ) is the number of vertices adjacent to v; that is,
d(v)=|{uV:uvE}|.
Another term for the vertex degree is valence, as borrowed from chemistry, and historically some authors have preferred ρ(v) to denote valence.

Definition 6.1.6. Subgraphs.

A graph Γ=(V,E) is a subgraph of Γ=(V,E) if and only if VV and EE. The subgraph Γ is the subgraph of Γ induced by V if and only if E={uvE:u,vV}. That is, Γ is an induced subgraph of Γ if and only if every edge of Γ between vertices of Γ is an edge of Γ. There are many competing notations for induced subgraphs, but we will denote the induced subgraph of V in Γ by Γ[V].

Example 6.1.7. Some subgraphs of the Petersen graph.

If we relabel the vertices of the Petersen graph Π as
v0={0,1},v1={1,2},v2={2,3},v3={3,4},v4={0,4},v5={2,4},v6={0,3},v7={1,4},v8={0,2},v9={1,3},
then the subgraph Π[V] induced by V={v0,v2,v3,v7,v8} has edge set E={v0v2,v0v3,v2v7,v3v8,v7v8}, highlighted in red.

Definition 6.1.8. Graph isomorphism.

Two graphs Γ=(V,E) and Γ=(V,E) are isomorphic if there is a function ϕ:VV such that the following three conditions hold.
Injective
If v0,v1V with v0v1, then ϕ(v0)ϕ(v1).
Surjective
If vV, then there is some vV such that ϕ(v)=v.
Graph Homomorphism
v0v1E if and only if v0v1E with ϕ(v0)=v0 and ϕ(v1)=v1.
If such a function exists, we write ΓΓ.
Each of these conditions independently are important, but their combination is essential in graph theory: a graph isomorphism is an adjacency-preserving bijection between vertex sets.

Definition 6.1.9. Graph automorphism.

Let Γ=(V,E). A permutation ϕ:VV which satisfies condition (3) of the definition of Graph isomorphism is a graph automorphism. The set of all automorphisms of a graph Γ is denoted AutΓ.

Example 6.1.10. Isomorphism is not equality.

Consider the graphs
K4=({a,b,c,d},{uv:u,vV,uv})
and
K4=({v0,v1,v2,v3},{vivj:i,j{0,1,2,3},i<j}).
Since V(K4)V(K4), obviously K4K4. However choosing any bijection ϕ:{a,b,c,d}{v0,v1,v2,v3} suffices to produce a graph isomorphism from K4 to K4, so K4K4

Definition 6.1.11. Paths.

Suppose Γ=(V,E) is a graph and u,vV. A path between u and v is any sequence
(u=v0,e1,v0,e2,v1,,vn1,en,vn=v)
such that ei=vi1vi for each i{1,2,,n} and vivj if ij. This can also be called a u,v-path. A path containing n edges is a path of length n.

Definition 6.1.12. Graph distance.

Let Γ=(V,E) be a graph and v0,v1V. The distance from v0 to v1 is the length of a shortest path between v0 and v1. If no such path exists, the distance from v0 to v1 is . Distance between v0 and v1 in the graph Γ is sometimes denoted dΓ(v0,v1), which can be easily confused with the notation for degree.

Definition 6.1.13. Cycles in graphs.

A cycle is a sequence
(v0,e1,v0,e2,v1,,vn1,en,vn=v0)
such that ei=vi1vi for each i{1,2,,n} and vivj if ij except for v0=vn. A cycle containing n edges is an n-cycle, and is isomorphic to the cycle graph Cn=(Zn,{ab:a,bZn,ab1mod(n)}.

Example 6.1.14. Paths and a cycle in the Petersen graph.

It is easy to draw the Petersen graph with two distinct (and openly disjoint) v0,v3-paths, one highlighted in red and the other in blue. The union of the red and blue paths is a 9-cycle in Π.

Definition 6.1.15. Connected graphs.

The graph Γ is connected if and only if for any two distinct vertices v0,v1V there is at least one v0,v1-path.

Definition 6.1.16. Components of a graph.

A subgraph Γ=(V,E) of a graph Γ=(V,E) is a component of Γ if and only if Γ=Γ[V] and Γ[V{v} is disconnected for any vertex vVV. Clearly, a connected graph has only one component.

Definition 6.1.17. Trees and forests.

A connected graph containing no cycles is called a tree. An arbitrary graph containing no cycles is called a forest. For a given graph Γ=(V,E), a forest Φ=(V,E) where EE is called a spanning forest. A spanning tree of a connected graph is defined analogously.
These are just a few of the basic definitions of graph theory. It is a subject which is very appealing for research as the problems are often visually interesting. Since problems in the field are very accessible, some mathematicians are mildly derogatory towards graph theory, calling the field “recreational mathematics.” If that is so, then the vast number of graph theorists are perhaps the luckiest of all mathematicians: their chosen field of research is seen to be fun and games by their colleagues!
All joking aside, graph theory and the larger discipline of combinatorics are deeply applicable fields. There are many pratical, real world problems which are modeled by discrete systems (rather than continuous systems, such as used in differential equations or traditional applied math courses), and graph theory techniques are often the best solution to these problems. So while combinatorics is not generally considered part of applied mathematics, it is very much applicable mathematics.