In
graph theory
In mathematics and computer science, graph theory is the study of ''graph (discrete mathematics), graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of ''Vertex (graph ...
, a graph product is a
binary operation
In mathematics, a binary operation or dyadic operation is a rule for combining two elements (called operands) to produce another element. More formally, a binary operation is an operation of arity two.
More specifically, a binary operation ...
on
graph
Graph may refer to:
Mathematics
*Graph (discrete mathematics), a structure made of vertices and edges
**Graph theory, the study of such graphs and their properties
*Graph (topology), a topological space resembling a graph in the sense of discret ...
s. Specifically, it is an operation that takes two graphs and and produces a graph with the following properties:
* The
vertex set of is the
Cartesian product
In mathematics, specifically set theory, the Cartesian product of two sets and , denoted , is the set of all ordered pairs where is an element of and is an element of . In terms of set-builder notation, that is
A\times B = \.
A table c ...
, where and are the vertex sets of and , respectively.
* Two vertices and of are connected by an
edge,
iff
In logic and related fields such as mathematics and philosophy, "if and only if" (often shortened as "iff") is paraphrased by the biconditional, a logical connective between statements. The biconditional is true in two cases, where either both ...
a condition about in and in is fulfilled.
The graph products differ in what exactly this condition is. It is always about whether or not the vertices in are equal or connected by an edge.
The terminology and notation for specific graph products in the literature varies quite a lot; even if the following may be considered somewhat standard, readers are advised to check what definition a particular author uses for a graph product, especially in older texts.
Even for more standard definitions, it is not always consistent in the literature how to handle
self-loops. The formulas below for the number of edges in a product also may fail when including self-loops. For example, the tensor product of a single vertex self-loop with itself is another single vertex self-loop with
, and not
as the formula
would suggest.
Overview table
The following table shows the most common graph products, with
denoting "is connected by an edge to", and
denoting non-adjacency. While
''does'' allow equality,
means they must be distinct and non-adjacent. The operator symbols listed here are by no means standard, especially in older papers.
In general, a graph product is determined by any condition for
that can be expressed in terms of
and
.
Mnemonic
Let
be the complete graph on two vertices (i.e. a single edge). The product graphs
,
, and
look exactly like the graph representing the operator. For example,
is a four cycle (a square) and
is the complete graph on four vertices.
The