
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 ...
, the Cartesian product of
graphs and is a graph such that:
* 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 ...
; and
* two vertices and are adjacent in
if and only if
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 bo ...
either
** and is adjacent to in , or
** and is adjacent to in .
The Cartesian product of graphs is sometimes called the box product of graphs
arary 1969
The operation is
associative
In mathematics, the associative property is a property of some binary operations that rearranging the parentheses in an expression will not change the result. In propositional logic, associativity is a valid rule of replacement for express ...
, as the graphs and are naturally
isomorphic
In mathematics, an isomorphism is a structure-preserving mapping or morphism between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between the ...
.
The operation is
commutative
In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Perhaps most familiar as a pr ...
as an operation on isomorphism
classes of graphs, and more strongly the graphs and are
naturally isomorphic
In category theory, a branch of mathematics, a natural transformation provides a way of transforming one functor into another while respecting the internal structure (i.e., the composition of morphisms) of the categories involved. Hence, a natur ...
, but it is not commutative as an operation on
labeled graphs.
The notation has often been used for Cartesian products of graphs, but is now more commonly used for another construction known as the
tensor product of graphs. The square symbol is intended to be an intuitive and unambiguous notation for the Cartesian product, since it shows visually the four edges resulting from the Cartesian product of two edges.
Examples
* The Cartesian product of two edges is a
cycle on four vertices: K
2K
2 = C
4.
* The Cartesian product of K
2 and a
path graph is a
ladder graph.
* The Cartesian product of two path graphs is a
grid graph
In graph theory, a lattice graph, mesh graph, or grid graph is a Graph (discrete mathematics), graph whose graph drawing, drawing, Embedding, embedded in some Euclidean space , forms a regular tiling. This implies that the group (mathematics), g ...
.
* The Cartesian product of ''n'' edges is a hypercube:
::
:Thus, the Cartesian product of two
hypercube graph
In graph theory, the hypercube graph is the graph formed from the vertices and edges of an -dimensional hypercube. For instance, the cubical graph, cube graph is the graph formed by the 8 vertices and 12 edges of a three-dimensional cube.
has ...
s is another hypercube: Q
iQ
j = Q
i+j.
* The Cartesian product of two
median graphs is another median graph.
* The graph of vertices and edges of an n-
prism is the Cartesian product graph K
2C
n.
* The
rook's graph is the Cartesian product of two complete graphs.
Properties
If a connected graph is a Cartesian product, it can be factorized uniquely as a product of prime factors, graphs that cannot themselves be decomposed as products of graphs. However, describe a disconnected graph that can be expressed in two different ways as a Cartesian product of prime graphs:
:
where the plus sign denotes
disjoint union
In mathematics, the disjoint union (or discriminated union) A \sqcup B of the sets and is the set formed from the elements of and labelled (indexed) with the name of the set from which they come. So, an element belonging to both and appe ...
and the superscripts denote exponentiation over Cartesian products. This is related to the identity that
:
Both the factors
and
are not
irreducible polynomial
In mathematics, an irreducible polynomial is, roughly speaking, a polynomial that cannot be factored into the product of two non-constant polynomials. The property of irreducibility depends on the nature of the coefficients that are accepted f ...
s, but their factors include negative coefficients and thus the corresponding graphs cannot be decomposed. In this sense, the failure of unique factorization on (possibly disconnected) graphs is akin to the statement that polynomials with nonnegative integer coefficients is a
semiring
In abstract algebra, a semiring is an algebraic structure. Semirings are a generalization of rings, dropping the requirement that each element must have an additive inverse. At the same time, semirings are a generalization of bounded distribu ...
that fails the
unique factorization property.
A Cartesian product is
vertex transitive if and only if each of its factors is.
A Cartesian product is
bipartite if and only if each of its factors is. More generally, the
chromatic number of the Cartesian product satisfies the equation
:
The
Hedetniemi conjecture states a related equality for the
tensor product of graphs. The independence number of a Cartesian product is not so easily calculated, but as showed it satisfies the inequalities
:
The
Vizing conjecture states that the
domination number
Domination or dominant may refer to:
Society
* World domination, structure where one dominant power governs the planet
* Colonialism in which one group (usually a nation) invades another region for material gain or to eliminate competition
* Ch ...
of a Cartesian product satisfies the inequality
:
The Cartesian product of
unit distance graphs is another unit distance graph.
Cartesian product graphs can be recognized efficiently, in
linear time.
[. For earlier polynomial time algorithms see and .]
Algebraic graph theory
Algebraic graph theory can be used to analyse the Cartesian graph product.
If the graph
has
vertices and the
adjacency matrix , and the graph
has
vertices and the
adjacency matrix
, then the adjacency matrix of the Cartesian product of both graphs is given by
:
,
where
denotes the
Kronecker product
In mathematics, the Kronecker product, sometimes denoted by ⊗, is an operation on two matrices of arbitrary size resulting in a block matrix. It is a specialization of the tensor product (which is denoted by the same symbol) from vector ...
of matrices and
denotes the
identity matrix
In linear algebra, the identity matrix of size n is the n\times n square matrix with ones on the main diagonal and zeros elsewhere. It has unique properties, for example when the identity matrix represents a geometric transformation, the obje ...
. The adjacency matrix of the Cartesian graph product is therefore the
Kronecker sum of the adjacency matrices of the factors.
Category theory
Viewing a graph as a
category whose objects are the vertices and whose morphisms are the paths in the graph, the cartesian product of graphs corresponds to th
funny tensor productof categories. The cartesian product of graphs is one of two graph products that turn the category of graphs and graph homomorphisms into a
symmetric closed monoidal category (as opposed to merely symmetric monoidal), the other being the
tensor product of graphs. The internal hom