Graph operations build new graphs from old graphs. Some operations remove vertices or edges. Some combine two graphs. Some transform the incidence structure while preserving part of the original graph.
These operations are useful for two reasons. First, they give concise ways to construct examples. Second, they support proofs by reduction: one studies how a property changes when a graph is modified.
Common graph operations include union, intersection, complement, deletion, contraction, subdivision, join, and graph products. Standard references distinguish unary operations, which act on one graph, from binary operations, which combine two graphs.
12.1 Unary and Binary Operations
A unary graph operation takes one graph as input and produces one graph as output.
Examples include:
| Operation | Input | Output |
|---|---|---|
| Vertex deletion | and a vertex | |
| Edge deletion | and an edge | |
| Edge contraction | and an edge | |
| Complement | ||
| Subdivision | and an edge | A graph with replaced by a path |
A binary graph operation takes two graphs and produces one graph.
Examples include:
| Operation | Inputs | Output |
|---|---|---|
| Union | ||
| Intersection | ||
| Join | ||
| Cartesian product | ||
| Disjoint union |
Unary operations modify one graph. Binary operations combine two graphs.
12.2 Union of Graphs
Let
and
be graphs. Their union is the graph
with vertex set
and edge set
The union contains all vertices and all edges appearing in either graph. If a vertex or edge appears in both graphs, it appears only once in the union.
For example, if
and
then
The shared edge is not duplicated. This set-theoretic definition of graph union is the usual one.
12.3 Intersection of Graphs
The intersection of two graphs and is the graph
with vertex set
and edge set
The intersection keeps only the vertices and edges common to both graphs.
For example, if
and
then
Graph intersection is useful when two graphs describe different relations on overlapping objects, and one wants the part common to both.
12.4 Disjoint Union
The disjoint union of graphs combines them without identifying vertices.
Even if and use the same vertex labels, the disjoint union treats the two copies as separate unless they have first been explicitly identified.
It is often written as
Formally, one may replace the vertices of by pairs
and the vertices of by pairs
Then the vertex sets are disjoint by construction.
The disjoint union has no edges between the copy of and the copy of . Therefore, if both graphs are nonempty, the disjoint union is disconnected.
Disjoint union is useful for building graphs component by component.
12.5 Ring Sum and Symmetric Difference
The ring sum of two graphs is formed by taking the symmetric difference of their edge sets.
It is often written as
The edge set is
where
Thus an edge appears in exactly when it appears in one graph but not both.
Depending on convention, the vertex set may be taken as
or restricted to vertices incident with edges of the symmetric difference. The convention should be stated before use.
For example, if
and
then
The common edge disappears.
12.6 Complement
Let be a simple graph with vertex set . The complement of , written
is the simple graph with the same vertex set, where two distinct vertices are adjacent in exactly when they are not adjacent in .
Thus
For distinct vertices ,
if and only if
If has vertices and edges, then
has
edges.
The complement turns non-adjacency into adjacency. It is useful in coloring, clique theory, independent sets, and extremal graph theory.
12.7 Vertex Deletion
Let be a graph and let . The graph
is obtained by deleting and all edges incident with .
Thus
The edge set consists of all edges of whose endpoints are not .
More generally, if , then
is obtained by deleting every vertex in and all incident edges.
Vertex deletion is used in cut vertices, induced subgraphs, graph minors, recursive algorithms, and deletion proofs.
12.8 Edge Deletion
Let . The graph
is obtained by deleting the edge while keeping all vertices.
Thus
and
More generally, if , then
deletes all edges in .
Edge deletion produces a spanning subgraph. It is used in forests, spanning trees, bridges, cuts, and deletion-contraction recurrences. Lecture notes commonly define as the edge-deleted subgraph of .
12.9 Edge Addition
If and are distinct nonadjacent vertices of a simple graph , then
is the graph obtained by adding the edge .
The vertex set remains unchanged:
The edge set becomes
Adding an edge can reduce the number of connected components by at most one. If and are already in the same component, the number of components does not change. If they are in different components, those two components merge.
In a tree, adding any new edge creates exactly one cycle.
12.10 Edge Contraction
Let
be an edge of an undirected graph . The contraction of , written
is obtained by identifying and into a single new vertex and keeping the remaining adjacencies.
Intuitively, the edge is shrunk to a point.
If and are merged into a new vertex , then every edge incident with or becomes incident with . The edge itself disappears.
Contraction may create loops or multiple edges. In simple graph theory, loops are usually deleted and parallel edges may be merged after contraction.
Edge contraction is fundamental in graph minors, planar graph theory, spanning tree recurrences, and network simplification.
12.11 Subdivision
A subdivision replaces an edge by a path.
If
is an edge of , subdividing means deleting , adding a new vertex , and adding two edges
and
Thus the edge
is replaced by
Subdivision preserves many topological features of a graph while changing degrees and path lengths. It is important in planar graph theory, homeomorphism of graphs, graph drawing, and topological minors.
Repeated subdivision replaces an edge by a longer path.
12.12 Join of Graphs
Let and be vertex-disjoint graphs. The join of and , written
or sometimes
is obtained from their disjoint union by adding every possible edge between a vertex of and a vertex of .
Thus
and
The join makes every vertex of adjacent to every vertex of . This is the standard construction used in graph operations.
For example,
Joining two complete graphs gives a larger complete graph.
12.13 Cartesian Product
The Cartesian product of graphs and is written
Its vertex set is
Two vertices
and
are adjacent if either:
and
or
and
Thus movement in the product changes one coordinate at a time. This is the standard definition of the Cartesian product of graphs.
For example, the grid graph can be written as
It has vertices arranged like an -by- rectangular grid.
12.14 Other Graph Products
Several other graph products are used in graph theory.
The tensor product, also called the direct product, has vertex set
where two vertices are adjacent when both coordinates move along edges.
The strong product combines the Cartesian and tensor product rules. Two product vertices are adjacent if one coordinate moves, the other coordinate moves, or both move simultaneously. The strong product of path graphs models king moves on a grid.
The lexicographic product replaces each vertex of one graph by a copy of another graph.
Graph products are used in algebraic graph theory, network construction, coding theory, distributed computing, and metric graph theory.
12.15 Line Graph
The line graph of a graph , written
is the graph whose vertices are the edges of .
Two vertices of are adjacent when the corresponding edges of share an endpoint.
For example, if is the path
then has two edges:
and
These two edges share the endpoint , so is a graph with two adjacent vertices.
Line graphs convert edge questions into vertex questions. Matchings in , for example, correspond to independent sets in .
12.16 Graph Powers
The -th power of a graph , written
has the same vertex set as . Two distinct vertices are adjacent in when their distance in is at most .
Thus
if and only if
The first power is the graph itself:
The square adds edges between vertices at distance . Graph powers are useful in network reachability, coloring, bandwidth problems, and distance-based graph theory.
12.17 Operation Effects
Graph operations change graph parameters in predictable ways.
| Operation | Vertices | Edges | Typical effect |
|---|---|---|---|
| Vertex deletion | Decreases | Decreases | May disconnect graph |
| Edge deletion | Same | Decreases | May create more components |
| Edge addition | Same | Increases | May create cycles or merge components |
| Contraction | Decreases | Usually decreases | Shortens paths, may create parallel edges |
| Complement | Same | Replaces edges by non-edges | Exchanges cliques and independent sets |
| Join | Adds vertices | Adds all cross edges | Strongly increases connectivity |
| Cartesian product | Multiplies vertex counts | Combines coordinate moves | Builds grid-like graphs |
These effects help in proofs. For example, deleting edges can produce a spanning tree. Adding edges to a tree creates cycles. Taking complements converts clique questions into independent set questions.
12.18 Example
Let
have vertex set
and edge set
Thus .
The complement has the same vertex set and edge set
Deleting the edge gives
with edge set
Contracting the edge merges and . The resulting graph has two vertices and one edge between the merged vertex and .
Subdividing the edge adds a new vertex and replaces
by
These operations all begin with the same graph but produce different structural changes.
12.19 Summary
Graph operations construct new graphs from existing graphs. Unary operations modify one graph through deletion, addition, contraction, subdivision, complementation, line graph construction, or graph powers. Binary operations combine graphs through union, intersection, disjoint union, join, and graph products.
These operations are not merely notation. They are tools for building examples, proving theorems, designing algorithms, and comparing graph structures. Many later topics, including trees, minors, planar graphs, colorings, products, and spectral graph theory, depend on understanding how graph operations change vertices, edges, paths, cycles, and connectivity.