HOME

TheInfoList



OR:

In the
mathematical Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
field of
graph theory In mathematics, graph theory is the study of '' graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of '' vertices'' (also called ''nodes'' or ''points'') which are conn ...
, a graph homomorphism is a mapping between two
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 discre ...
s that respects their structure. More concretely, it is a function between the vertex sets of two graphs that maps adjacent vertices to adjacent vertices. Homomorphisms generalize various notions of
graph coloring In graph theory, graph coloring is a special case of graph labeling; it is an assignment of labels traditionally called "colors" to elements of a graph subject to certain constraints. In its simplest form, it is a way of coloring the vertices ...
s and allow the expression of an important class of
constraint satisfaction problem Constraint satisfaction problems (CSPs) are mathematical questions defined as a set of objects whose state must satisfy a number of constraints or limitations. CSPs represent the entities in a problem as a homogeneous collection of finite constr ...
s, such as certain
scheduling A schedule or a timetable, as a basic time-management tool, consists of a list of times at which possible tasks, events, or actions are intended to take place, or of a sequence of events in the chronological order in which such things are ...
or
frequency assignment Frequency assignment is the authorization of use of a particular radio frequency. In Article 1.18 of the International Telecommunication Union's (ITU) Radio Regulations (RR),ITU Radio Regulations, Section IV. Radio Stations and Systems – Artic ...
problems. The fact that homomorphisms can be composed leads to rich algebraic structures: a
preorder In mathematics, especially in order theory, a preorder or quasiorder is a binary relation that is reflexive and transitive. Preorders are more general than equivalence relations and (non-strict) partial orders, both of which are special cas ...
on graphs, a
distributive lattice In mathematics, a distributive lattice is a lattice in which the operations of join and meet distribute over each other. The prototypical examples of such structures are collections of sets for which the lattice operations can be given by set ...
, and a
category Category, plural categories, may refer to: Philosophy and general uses *Categorization, categories in cognitive science, information science and generally * Category of being * ''Categories'' (Aristotle) * Category (Kant) * Categories (Peirce) ...
(one for undirected graphs and one for directed graphs). The
computational complexity In computer science, the computational complexity or simply complexity of an algorithm is the amount of resources required to run it. Particular focus is given to computation time (generally measured by the number of needed elementary operations) ...
of finding a homomorphism between given graphs is prohibitive in general, but a lot is known about special cases that are solvable in
polynomial time In computer science, the time complexity is the computational complexity that describes the amount of computer time it takes to run an algorithm. Time complexity is commonly estimated by counting the number of elementary operations performed by ...
. Boundaries between tractable and intractable cases have been an active area of research.


Definitions

In this article, unless stated otherwise, ''graphs'' are finite, undirected graphs with loops allowed, but
multiple edges In graph theory, multiple edges (also called parallel edges or a multi-edge), are, in an undirected graph, two or more edges that are incident to the same two vertices, or in a directed graph, two or more edges with both the same tail vertex ...
(parallel edges) disallowed. A graph homomorphismFor introductions, see (in order of increasing length): ; ; .   from a graph G = (V(G), E(G)) to a graph H = (V(H), E(H)), written : is a function from V(G) to V(H) that maps endpoints of each edge in G to endpoints of an edge in H. Formally, \ \in E(G) implies \ \in E(H), for all pairs of vertices u, v in V(G). If there exists any homomorphism from ''G'' to ''H'', then ''G'' is said to be homomorphic to ''H'' or ''H''-colorable. This is often denoted as just: : The above definition is extended to directed graphs. Then, for a homomorphism ''f'' : ''G'' → ''H'', (''f''(''u''),''f''(''v'')) is an arc (directed edge) of ''H'' whenever (''u'',''v'') is an arc of ''G''. There is an
injective In mathematics, an injective function (also known as injection, or one-to-one function) is a function that maps distinct elements of its domain to distinct elements; that is, implies . (Equivalently, implies in the equivalent contrapositi ...
homomorphism from ''G'' to ''H'' (i.e., one that never maps distinct vertices to one vertex) if and only if ''G'' is a subgraph of ''H''. If a homomorphism ''f'' : ''G'' → ''H'' is a
bijection In mathematics, a bijection, also known as a bijective function, one-to-one correspondence, or invertible function, is a function between the elements of two sets, where each element of one set is paired with exactly one element of the other ...
(a one-to-one correspondence between vertices of ''G'' and ''H'') whose
inverse function In mathematics, the inverse function of a function (also called the inverse of ) is a function that undoes the operation of . The inverse of exists if and only if is bijective, and if it exists, is denoted by f^ . For a function f\colon X ...
is also a graph homomorphism, then ''f'' is a
graph isomorphism In graph theory, an isomorphism of graphs ''G'' and ''H'' is a bijection between the vertex sets of ''G'' and ''H'' : f \colon V(G) \to V(H) such that any two vertices ''u'' and ''v'' of ''G'' are adjacent in ''G'' if and only if f(u) and f(v) ar ...
. Covering maps are a special kind of homomorphisms that mirror the definition and many properties of covering maps in topology. They are defined as
surjective In mathematics, a surjective function (also known as surjection, or onto function) is a function that every element can be mapped from element so that . In other words, every element of the function's codomain is the image of one element o ...
homomorphisms (i.e., something maps to each vertex) that are also locally bijective, that is, a bijection on the
neighbourhood A neighbourhood (British English, Irish English, Australian English and Canadian English) or neighborhood (American English; see spelling differences) is a geographically localised community within a larger city, town, suburb or rural a ...
of each vertex. An example is the
bipartite double cover In graph theory, the bipartite double cover of an undirected graph is a bipartite, covering graph of , with twice as many vertices as . It can be constructed as the tensor product of graphs, . It is also called the Kronecker double cover, cano ...
, formed from a graph by splitting each vertex ''v'' into ''v0'' and ''v1'' and replacing each edge ''u'',''v'' with edges ''u0'',''v1'' and ''v0'',''u1''. The function mapping ''v0'' and ''v1'' in the cover to ''v'' in the original graph is a homomorphism and a covering map. Graph
homeomorphism In the mathematical field of topology, a homeomorphism, topological isomorphism, or bicontinuous function is a bijective and continuous function between topological spaces that has a continuous inverse function. Homeomorphisms are the isom ...
is a different notion, not related directly to homomorphisms. Roughly speaking, it requires injectivity, but allows mapping edges to paths (not just to edges).
Graph minor In graph theory, an undirected graph is called a minor of the graph if can be formed from by deleting edges and vertices and by contracting edges. The theory of graph minors began with Wagner's theorem that a graph is planar if and only if ...
s are a still more relaxed notion.


Cores and retracts

Two graphs ''G'' and ''H'' are homomorphically equivalent if ''G'' → ''H'' and ''H'' → ''G''. The maps are not necessarily surjective nor injective. For instance, the
complete bipartite graph In the mathematical field of graph theory, a complete bipartite graph or biclique is a special kind of bipartite graph where every vertex of the first set is connected to every vertex of the second set..Electronic edition page 17. Graph theory i ...
s ''K''2,2 and ''K''3,3 are homomorphically equivalent: each map can be defined as taking the left (resp. right) half of the domain graph and mapping to just one vertex in the left (resp. right) half of the image graph. A retraction is a homomorphism ''r'' from a graph ''G'' to a subgraph ''H'' of ''G'' such that ''r''(''v'') = ''v'' for each vertex ''v'' of ''H''. In this case the subgraph ''H'' is called a retract of ''G''. A core is a graph with no homomorphism to any proper subgraph. Equivalently, a core can be defined as a graph that does not retract to any proper subgraph. Every graph ''G'' is homomorphically equivalent to a unique core (up to isomorphism), called ''the core'' of ''G''. Notably, this is not true in general for infinite graphs. However, the same definitions apply to directed graphs and a directed graph is also equivalent to a unique core. Every graph and every directed graph contains its core as a retract and as an
induced subgraph In the mathematical field of graph theory, an induced subgraph of a graph is another graph, formed from a subset of the vertices of the graph and ''all'' of the edges (from the original graph) connecting pairs of vertices in that subset. Defini ...
. For example, all
complete graph In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices is ...
s ''K''n and all odd cycles (
cycle graph In graph theory, a cycle graph or circular graph is a graph that consists of a single cycle, or in other words, some number of vertices (at least 3, if the graph is simple) connected in a closed chain. The cycle graph with vertices is called ...
s of odd length) are cores. Every 3-colorable graph ''G'' that contains a triangle (that is, has the
complete graph In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices is ...
''K''3 as a subgraph) is homomorphically equivalent to ''K''3. This is because, on one hand, a 3-coloring of ''G'' is the same as a homomorphism ''G'' → ''K''3, as explained below. On the other hand, every subgraph of ''G'' trivially admits a homomorphism into ''G'', implying ''K''3 → ''G''. This also means that ''K''3 is the core of any such graph ''G''. Similarly, every
bipartite graph In the mathematical field of graph theory, a bipartite graph (or bigraph) is a graph whose vertices can be divided into two disjoint and independent sets U and V, that is every edge connects a vertex in U to one in V. Vertex sets U and V a ...
that has at least one edge is equivalent to ''K''2.


Connection to colorings

A ''k''-coloring, for some integer ''k'', is an assignment of one of ''k'' colors to each vertex of a graph ''G'' such that the endpoints of each edge get different colors. The ''k''-colorings of ''G'' correspond exactly to homomorphisms from ''G'' to the
complete graph In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices is ...
''K''''k''. Indeed, the vertices of ''K''''k'' correspond to the ''k'' colors, and two colors are adjacent as vertices of ''K''''k'' if and only if they are different. Hence a function defines a homomorphism to ''K''''k'' if and only if it maps adjacent vertices of ''G'' to different colors (i.e., it is a ''k''-coloring). In particular, ''G'' is ''k''-colorable if and only if it is ''K''''k''-colorable. If there are two homomorphisms ''G'' → ''H'' and ''H'' → ''K''''k'', then their composition ''G'' → ''K''''k'' is also a homomorphism. In other words, if a graph ''H'' can be colored with ''k'' colors, and there is a homomorphism from ''G'' to ''H'', then ''G'' can also be ''k''-colored. Therefore, ''G'' → ''H'' implies χ(''G'') ≤ χ(''H''), where ''χ'' denotes the
chromatic number In graph theory, graph coloring is a special case of graph labeling; it is an assignment of labels traditionally called "colors" to elements of a graph subject to certain constraints. In its simplest form, it is a way of coloring the vertices ...
of a graph (the least ''k'' for which it is ''k''-colorable).


Variants

General homomorphisms can also be thought of as a kind of coloring: if the vertices of a fixed graph ''H'' are the available ''colors'' and edges of ''H'' describe which colors are ''compatible'', then an ''H''-coloring of ''G'' is an assignment of colors to vertices of ''G'' such that adjacent vertices get compatible colors. Many notions of graph coloring fit into this pattern and can be expressed as graph homomorphisms into different families of graphs. Circular colorings can be defined using homomorphisms into circular complete graphs, refining the usual notion of colorings. Fractional and ''b''-fold coloring can be defined using homomorphisms into
Kneser graph In graph theory, the Kneser graph (alternatively ) is the graph whose vertices correspond to the -element subsets of a set of elements, and where two vertices are adjacent if and only if the two corresponding sets are disjoint. Kneser graphs a ...
s.
T-coloring In graph theory, a T-Coloring of a graph G = (V, E), given the set ''T'' of nonnegative integers containing 0, is a function c: V(G) \to \N that maps each vertex to a positive integer (color) such that if ''u'' and ''w'' are adjacent then , c(u) - c ...
s correspond to homomorphisms into certain infinite graphs. An oriented coloring of a directed graph is a homomorphism into any
oriented graph In graph theory, an orientation of an undirected graph is an assignment of a direction to each edge, turning the initial graph into a directed graph. Oriented graphs A directed graph is called an oriented graph if none of its pairs of vertices i ...
. An
L(2,1)-coloring L(2, 1)-coloring is a particular case of L(h, k)-coloring In graph theory In mathematics, graph theory is the study of ''graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is ma ...
is a homomorphism into the
complement A complement is something that completes something else. Complement may refer specifically to: The arts * Complement (music), an interval that, when added to another, spans an octave ** Aggregate complementation, the separation of pitch-clas ...
of the
path graph In the mathematical field of graph theory, a path graph or linear graph is a graph whose vertices can be listed in the order such that the edges are where . Equivalently, a path with at least two vertices is connected and has two termina ...
that is locally injective, meaning it is required to be injective on the neighbourhood of every vertex.


Orientations without long paths

Another interesting connection concerns
orientations ''Orientations'' is a bimonthly print magazine published in Hong Kong and distributed worldwide since 1969. It is an authoritative source of information on the many and varied aspects of the arts of East and Southeast Asia, the Himalayas, the India ...
of graphs. An orientation of an undirected graph ''G'' is any directed graph obtained by choosing one of the two possible orientations for each edge. An example of an orientation of the complete graph ''Kk'' is the transitive tournament ''k'' with vertices 1,2,…,''k'' and arcs from ''i'' to ''j'' whenever ''i'' < ''j''. A homomorphism between orientations of graphs ''G'' and ''H'' yields a homomorphism between the undirected graphs ''G'' and ''H'', simply by disregarding the orientations. On the other hand, given a homomorphism ''G'' → ''H'' between undirected graphs, any orientation of ''H'' can be pulled back to an orientation of ''G'' so that has a homomorphism to . Therefore, a graph ''G'' is ''k''-colorable (has a homomorphism to ''Kk'') if and only if some orientation of ''G'' has a homomorphism to ''k''. A folklore theorem states that for all ''k'', a directed graph ''G'' has a homomorphism to ''k'' if and only if it admits no homomorphism from the directed path ''k''+1. Here ''n'' is the directed graph with vertices 1, 2, …, ''n'' and edges from ''i'' to ''i'' + 1, for ''i'' = 1, 2, …, ''n'' − 1. Therefore, a graph is ''k''-colorable if and only if it has an orientation that admits no homomorphism from ''k''+1. This statement can be strengthened slightly to say that a graph is ''k''-colorable if and only if some orientation contains no directed path of length ''k'' (no ''k''+1 as a subgraph). This is the
Gallai–Hasse–Roy–Vitaver theorem In graph theory, the Gallai–Hasse–Roy–Vitaver theorem is a form of duality between the colorings of the vertices of a given undirected graph and the orientations of its edges. It states that the minimum number of colors needed to properly c ...
.


Connection to constraint satisfaction problems


Examples

Some scheduling problems can be modeled as a question about finding graph homomorphisms. As an example, one might want to assign workshop courses to time slots in a calendar so that two courses attended by the same student are not too close to each other in time. The courses form a graph ''G'', with an edge between any two courses that are attended by some common student. The time slots form a graph ''H'', with an edge between any two slots that are distant enough in time. For instance, if one wants a cyclical, weekly schedule, such that each student gets their workshop courses on non-consecutive days, then ''H'' would be the
complement graph In the mathematical field of graph theory, the complement or inverse of a graph is a graph on the same vertices such that two distinct vertices of are adjacent if and only if they are not adjacent in . That is, to generate the complement of a ...
of ''C''7. A graph homomorphism from ''G'' to ''H'' is then a schedule assigning courses to time slots, as specified. To add a requirement saying that, e.g., no single student has courses on both Friday and Monday, it suffices to remove the corresponding edge from ''H''. A simple
frequency allocation Frequency allocation (or spectrum allocation or spectrum management) is the allocation and regulation of the electromagnetic spectrum into radio frequency bands, normally done by governments in most countries. Because radio propagation does ...
problem can be specified as follows: a number of transmitters in a
wireless network A wireless network is a computer network that uses wireless data connections between network nodes. Wireless networking is a method by which homes, telecommunications networks and business installations avoid the costly process of introducing ...
must choose a frequency channel on which they will transmit data. To avoid interference, transmitters that are geographically close should use channels with frequencies that are far apart. If this condition is approximated with a single threshold to define 'geographically close' and 'far apart', then a valid channel choice again corresponds to a graph homomorphism. It should go from the graph of transmitters ''G'', with edges between pairs that are geographically close, to the graph of channels ''H'', with edges between channels that are far apart. While this model is rather simplified, it does admit some flexibility: transmitter pairs that are not close but could interfere because of geographical features can added to the edges of ''G''. Those that do not communicate at the same time can be removed from it. Similarly, channel pairs that are far apart but exhibit
harmonic A harmonic is a wave with a frequency that is a positive integer multiple of the ''fundamental frequency'', the frequency of the original periodic signal, such as a sinusoidal wave. The original signal is also called the ''1st harmonic'', t ...
interference can be removed from the edge set of ''H''. In each case, these simplified models display many of the issues that have to be handled in practice.
Constraint satisfaction problem Constraint satisfaction problems (CSPs) are mathematical questions defined as a set of objects whose state must satisfy a number of constraints or limitations. CSPs represent the entities in a problem as a homogeneous collection of finite constr ...
s, which generalize graph homomorphism problems, can express various additional types of conditions (such as individual preferences, or bounds on the number of coinciding assignments). This allows the models to be made more realistic and practical.


Formal view

Graphs and directed graphs can be viewed as a special case of the far more general notion called relational
structure A structure is an arrangement and organization of interrelated elements in a material object or system, or the object or system so organized. Material structures include man-made objects such as buildings and machines and natural objects such a ...
s (defined as a set with a tuple of relations on it). Directed graphs are structures with a single binary relation (adjacency) on the domain (the vertex set)., note ''relational structures'' are called ''relational systems'' there. Under this view,
homomorphisms In algebra, a homomorphism is a structure-preserving map between two algebraic structures of the same type (such as two groups, two rings, or two vector spaces). The word ''homomorphism'' comes from the Ancient Greek language: () meaning "same ...
of such structures are exactly graph homomorphisms. In general, the question of finding a homomorphism from one relational structure to another is a
constraint satisfaction problem Constraint satisfaction problems (CSPs) are mathematical questions defined as a set of objects whose state must satisfy a number of constraints or limitations. CSPs represent the entities in a problem as a homogeneous collection of finite constr ...
(CSP). The case of graphs gives a concrete first step that helps to understand more complicated CSPs. Many algorithmic methods for finding graph homomorphisms, like
backtracking Backtracking is a class of algorithms for finding solutions to some computational problems, notably constraint satisfaction problems, that incrementally builds candidates to the solutions, and abandons a candidate ("backtracks") as soon as it d ...
, constraint propagation and local search, apply to all CSPs. For graphs ''G'' and ''H'', the question of whether ''G'' has a homomorphism to ''H'' corresponds to a CSP instance with only one kind of constraint, as follows. The ''variables'' are the vertices of ''G'' and the ''domain'' for each variable is the vertex set of ''H''. An ''evaluation'' is a function that assigns to each variable an element of the domain, so a function ''f'' from ''V''(''G'') to ''V''(''H''). Each edge or arc (''u'',''v'') of ''G'' then corresponds to the ''constraint'' ((''u'',''v''), E(''H'')). This is a constraint expressing that the evaluation should map the arc (''u'',''v'') to a pair (''f''(''u''),''f''(''v'')) that is in the relation ''E''(''H''), that is, to an arc of ''H''. A solution to the CSP is an evaluation that respects all constraints, so it is exactly a homomorphism from ''G'' to ''H''.


Structure of homomorphisms

Compositions of homomorphisms are homomorphisms. In particular, the relation → on graphs is transitive (and reflexive, trivially), so it is a
preorder In mathematics, especially in order theory, a preorder or quasiorder is a binary relation that is reflexive and transitive. Preorders are more general than equivalence relations and (non-strict) partial orders, both of which are special cas ...
on graphs. Let the
equivalence class In mathematics, when the elements of some set S have a notion of equivalence (formalized as an equivalence relation), then one may naturally split the set S into equivalence classes. These equivalence classes are constructed so that elements a ...
of a graph ''G'' under homomorphic equivalence be 'G'' The equivalence class can also be represented by the unique core in 'G'' The relation → is a
partial order In mathematics, especially order theory, a partially ordered set (also poset) formalizes and generalizes the intuitive concept of an ordering, sequencing, or arrangement of the elements of a set. A poset consists of a set together with a binary ...
on those equivalence classes; it defines a
poset In mathematics, especially order theory, a partially ordered set (also poset) formalizes and generalizes the intuitive concept of an ordering, sequencing, or arrangement of the elements of a set. A poset consists of a set together with a binary r ...
. Let ''G'' < ''H'' denote that there is a homomorphism from ''G'' to ''H'', but no homomorphism from ''H'' to ''G''. The relation → is a
dense order In mathematics, a partial order or total order < on a X is said to be dense if, for all x
, meaning that for all (undirected) graphs ''G'', ''H'' such that ''G'' < ''H'', there is a graph ''K'' such that ''G'' < ''K'' < ''H'' (this holds except for the trivial cases ''G'' = ''K''0 or ''K''1). For example, between any two
complete graph In the mathematical field of graph theory, a complete graph is a simple undirected graph in which every pair of distinct vertices is connected by a unique edge. A complete digraph is a directed graph in which every pair of distinct vertices is ...
s (except ''K''0, ''K''1, ''K''2) there are infinitely many circular complete graphs, corresponding to rational numbers between natural numbers. The poset of equivalence classes of graphs under homomorphisms is a
distributive lattice In mathematics, a distributive lattice is a lattice in which the operations of join and meet distribute over each other. The prototypical examples of such structures are collections of sets for which the lattice operations can be given by set ...
, with the
join Join may refer to: * Join (law), to include additional counts or additional defendants on an indictment *In mathematics: ** Join (mathematics), a least upper bound of sets orders in lattice theory ** Join (topology), an operation combining two topo ...
of 'G''and 'H''defined as (the equivalence class of) the disjoint union 'G'' ∪ ''H'' and the meet of 'G''and 'H''defined as the
tensor product In mathematics, the tensor product V \otimes W of two vector spaces and (over the same field) is a vector space to which is associated a bilinear map V\times W \to V\otimes W that maps a pair (v,w),\ v\in V, w\in W to an element of V \otime ...
'G'' × ''H''(the choice of graphs ''G'' and ''H'' representing the equivalence classes 'G''and 'H''does not matter). The join-irreducible elements of this lattice are exactly
connected Connected may refer to: Film and television * ''Connected'' (2008 film), a Hong Kong remake of the American movie ''Cellular'' * '' Connected: An Autoblogography About Love, Death & Technology'', a 2011 documentary film * ''Connected'' (2015 TV ...
graphs. This can be shown using the fact that a homomorphism maps a connected graph into one connected component of the target graph. The meet-irreducible elements of this lattice are exactly the multiplicative graphs. These are the graphs ''K'' such that a product ''G'' × ''H'' has a homomorphism to ''K'' only when one of ''G'' or ''H'' also does. Identifying multiplicative graphs lies at the heart of
Hedetniemi's conjecture In graph theory, Hedetniemi's conjecture, formulated by Stephen T. Hedetniemi in 1966, concerns the connection between graph coloring and the tensor product of graphs. This conjecture states that : \chi (G \times H ) = \min\. Here \chi(G) denote ...
. Graph homomorphisms also form a
category Category, plural categories, may refer to: Philosophy and general uses *Categorization, categories in cognitive science, information science and generally * Category of being * ''Categories'' (Aristotle) * Category (Kant) * Categories (Peirce) ...
, with graphs as objects and homomorphisms as arrows. The
initial object In category theory, a branch of mathematics, an initial object of a category is an object in such that for every object in , there exists precisely one morphism . The dual notion is that of a terminal object (also called terminal element): ...
is the empty graph, while the
terminal object In category theory, a branch of mathematics, an initial object of a category is an object in such that for every object in , there exists precisely one morphism . The dual notion is that of a terminal object (also called terminal element): ...
is the graph with one vertex and one
loop Loop or LOOP may refer to: Brands and enterprises * Loop (mobile), a Bulgarian virtual network operator and co-founder of Loop Live * Loop, clothing, a company founded by Carlos Vasquez in the 1990s and worn by Digable Planets * Loop Mobile, an ...
at that vertex. The
tensor product of graphs In graph theory, the tensor product of graphs and is a graph such that * the vertex set of is the Cartesian product ; and * vertices and are adjacent in if and only if ** is adjacent to in , and ** is adjacent to in . The tensor p ...
is the category-theoretic product and the exponential graph is the
exponential object In mathematics, specifically in category theory, an exponential object or map object is the categorical generalization of a function space in set theory. Categories with all finite products and exponential objects are called cartesian closed c ...
for this category. Since these two operations are always defined, the category of graphs is a
cartesian closed category In category theory, a category is Cartesian closed if, roughly speaking, any morphism defined on a product of two objects can be naturally identified with a morphism defined on one of the factors. These categories are particularly important in math ...
. For the same reason, the lattice of equivalence classes of graphs under homomorphisms is in fact a
Heyting algebra In mathematics, a Heyting algebra (also known as pseudo-Boolean algebra) is a bounded lattice (with join and meet operations written ∨ and ∧ and with least element 0 and greatest element 1) equipped with a binary operation ''a'' → ''b'' of '' ...
. For directed graphs the same definitions apply. In particular → is a
partial order In mathematics, especially order theory, a partially ordered set (also poset) formalizes and generalizes the intuitive concept of an ordering, sequencing, or arrangement of the elements of a set. A poset consists of a set together with a binary ...
on equivalence classes of directed graphs. It is distinct from the order → on equivalence classes of undirected graphs, but contains it as a suborder. This is because every undirected graph can be thought of as a directed graph where every arc (''u'',''v'') appears together with its inverse arc (''v'',''u''), and this does not change the definition of homomorphism. The order → for directed graphs is again a distributive lattice and a Heyting algebra, with join and meet operations defined as before. However, it is not dense. There is also a category with directed graphs as objects and homomorphisms as arrows, which is again a
cartesian closed category In category theory, a category is Cartesian closed if, roughly speaking, any morphism defined on a product of two objects can be naturally identified with a morphism defined on one of the factors. These categories are particularly important in math ...
.


Incomparable graphs

There are many incomparable graphs with respect to the homomorphism preorder, that is, pairs of graphs such that neither admits a homomorphism into the other. One way to construct them is to consider the
odd girth In graph theory, the girth of an undirected graph is the length of a shortest cycle contained in the graph. If the graph does not contain any cycles (that is, it is a forest), its girth is defined to be infinity. For example, a 4-cycle (square) ha ...
of a graph ''G'', the length of its shortest odd-length cycle. The odd girth is, equivalently, the smallest
odd number In mathematics, parity is the property of an integer of whether it is even or odd. An integer is even if it is a multiple of two, and odd if it is not.. For example, −4, 0, 82 are even because \begin -2 \cdot 2 &= -4 \\ 0 \cdot 2 &= 0 \\ 41 ...
''g'' for which there exists a homomorphism from the
cycle graph In graph theory, a cycle graph or circular graph is a graph that consists of a single cycle, or in other words, some number of vertices (at least 3, if the graph is simple) connected in a closed chain. The cycle graph with vertices is called ...
on ''g'' vertices to ''G''. For this reason, if ''G'' → ''H'', then the odd girth of ''G'' is greater than or equal to the odd girth of ''H''. On the other hand, if ''G'' → ''H'', then the chromatic number of ''G'' is less than or equal to the chromatic number of ''H''. Therefore, if ''G'' has strictly larger odd girth than ''H'' and strictly larger chromatic number than ''H'', then ''G'' and ''H'' are incomparable. For example, the
Grötzsch graph In the mathematical field of graph theory, the Grötzsch graph is a triangle-free graph with 11 vertices, 20 edges, chromatic number 4, and crossing number 5. It is named after German mathematician Herbert Grötzsch, who used it as an example ...
is 4-chromatic and triangle-free (it has girth 4 and odd girth 5), so it is incomparable to the triangle graph ''K''3. Examples of graphs with arbitrarily large values of odd girth and chromatic number are
Kneser graph In graph theory, the Kneser graph (alternatively ) is the graph whose vertices correspond to the -element subsets of a set of elements, and where two vertices are adjacent if and only if the two corresponding sets are disjoint. Kneser graphs a ...
s and generalized Mycielskians. A sequence of such graphs, with simultaneously increasing values of both parameters, gives infinitely many incomparable graphs (an
antichain In mathematics, in the area of order theory, an antichain is a subset of a partially ordered set such that any two distinct elements in the subset are incomparable. The size of the largest antichain in a partially ordered set is known as its wi ...
in the homomorphism preorder). Other properties, such as
density Density (volumetric mass density or specific mass) is the substance's mass per unit of volume. The symbol most often used for density is ''ρ'' (the lower case Greek letter rho), although the Latin letter ''D'' can also be used. Mathematicall ...
of the homomorphism preorder, can be proved using such families. Constructions of graphs with large values of chromatic number and girth, not just odd girth, are also possible, but more complicated (see Girth and graph coloring). Among directed graphs, it is much easier to find incomparable pairs. For example, consider the directed cycle graphs ''n'', with vertices 1, 2, …, ''n'' and edges from ''i'' to ''i'' + 1 (for ''i'' = 1, 2, …, ''n'' − 1) and from ''n'' to 1. There is a homomorphism from ''n'' to ''k'' (''n'', ''k'' ≥ 3) if and only if ''n'' is a multiple of ''k''. In particular, directed cycle graphs ''n'' with ''n'' prime are all incomparable.


Computational complexity

In the graph homomorphism problem, an instance is a pair of graphs (''G'',''H'') and a solution is a homomorphism from ''G'' to ''H''. The general
decision problem In computability theory and computational complexity theory, a decision problem is a computational problem that can be posed as a yes–no question of the input values. An example of a decision problem is deciding by means of an algorithm whe ...
, asking whether there is any solution, is
NP-complete In computational complexity theory, a problem is NP-complete when: # it is a problem for which the correctness of each solution can be verified quickly (namely, in polynomial time) and a brute-force search algorithm can find a solution by trying ...
. However, limiting allowed instances gives rise to a variety of different problems, some of which are much easier to solve. Methods that apply when restraining the left side ''G'' are very different than for the right side ''H'', but in each case a dichotomy (a sharp boundary between easy and hard cases) is known or conjectured.


Homomorphisms to a fixed graph

The homomorphism problem with a fixed graph ''H'' on the right side of each instance is also called the ''H''-coloring problem. When ''H'' is the complete graph ''K''''k'', this is the graph ''k''-coloring problem, which is solvable in polynomial time for ''k'' = 0, 1, 2, and
NP-complete In computational complexity theory, a problem is NP-complete when: # it is a problem for which the correctness of each solution can be verified quickly (namely, in polynomial time) and a brute-force search algorithm can find a solution by trying ...
otherwise. In particular, ''K''2-colorability of a graph ''G'' is equivalent to ''G'' being
bipartite Bipartite may refer to: * 2 (number) * Bipartite (theology), a philosophical term describing the human duality of body and soul * Bipartite graph, in mathematics, a graph in which the vertices are partitioned into two sets and every edge has an en ...
, which can be tested in linear time. More generally, whenever ''H'' is a bipartite graph, ''H''-colorability is equivalent to ''K''2-colorability (or ''K''''0'' / ''K''''1''-colorability when ''H'' is empty/edgeless), hence equally easy to decide. Pavol Hell and
Jaroslav Nešetřil Jaroslav (Jarik) Nešetřil (; born March 13, 1946 in Brno) is a Czech mathematician, working at Charles University in Prague. His research areas include combinatorics Combinatorics is an area of mathematics primarily concerned with counti ...
proved that, for undirected graphs, no other case is tractable: : Hell–Nešetřil theorem (1990): The ''H''-coloring problem is in P when ''H'' is bipartite and NP-complete otherwise. This is also known as the ''dichotomy theorem'' for (undirected) graph homomorphisms, since it divides ''H''-coloring problems into NP-complete or P problems, with no intermediate cases. For directed graphs, the situation is more complicated and in fact equivalent to the much more general question of characterizing the complexity of constraint satisfaction problems. It turns out that ''H''-coloring problems for directed graphs are just as general and as diverse as CSPs with any other kinds of constraints. Formally, a (finite) ''constraint language'' (or ''template'') ''Γ'' is a finite domain and a finite set of relations over this domain. CSP(''Γ'') is the constraint satisfaction problem where instances are only allowed to use constraints in ''Γ''. : Theorem (Feder, Vardi 1998): For every constraint language ''Γ'', the problem CSP(''Γ'') is equivalent under
polynomial-time reduction In computational complexity theory, a polynomial-time reduction is a method for solving one problem using another. One shows that if a hypothetical subroutine solving the second problem exists, then the first problem can be solved by transforming ...
s to some ''H''-coloring problem, for some directed graph ''H''. Intuitively, this means that every algorithmic technique or complexity result that applies to ''H''-coloring problems for directed graphs ''H'' applies just as well to general CSPs. In particular, one can ask whether the Hell–Nešetřil theorem can be extended to directed graphs. By the above theorem, this is equivalent to the Feder–Vardi conjecture (aka CSP conjecture, dichotomy conjecture) on CSP dichotomy, which states that for every constraint language ''Γ'', CSP(''Γ'') is NP-complete or in P. This conjecture was proved in 2017 independently by Dmitry Zhuk and Andrei Bulatov, leading to the following corollary: : Corollary (Bulatov 2017; Zhuk 2017): The ''H''-coloring problem on directed graphs, for a fixed ''H'', is either in P or NP-complete.


Homomorphisms from a fixed family of graphs

The homomorphism problem with a single fixed graph ''G'' on left side of input instances can be solved by brute-force in time , ''V''(''H''), O(, ''V''(''G''), ), so polynomial in the size of the input graph ''H''. In other words, the problem is trivially in P for graphs ''G'' of bounded size. The interesting question is then what other properties of ''G'', beside size, make polynomial algorithms possible. The crucial property turns out to be
treewidth In graph theory, the treewidth of an undirected graph is an integer number which specifies, informally, how far the graph is from being a tree. The smallest treewidth is 1; the graphs with treewidth 1 are exactly the trees and the forests. The gra ...
, a measure of how tree-like the graph is. For a graph ''G'' of treewidth at most ''k'' and a graph ''H'', the homomorphism problem can be solved in time , ''V''(''H''), O(''k'') with a standard
dynamic programming Dynamic programming is both a mathematical optimization method and a computer programming method. The method was developed by Richard Bellman in the 1950s and has found applications in numerous fields, from aerospace engineering to economics. ...
approach. In fact, it is enough to assume that the core of ''G'' has treewidth at most ''k''. This holds even if the core is not known. The exponent in the , ''V''(''H''), O(''k'')-time algorithm cannot be lowered significantly: no algorithm with running time , ''V''(''H''), o(tw(''G'') /log tw(''G'')) exists, assuming the
exponential time hypothesis In computational complexity theory, the exponential time hypothesis is an unproven computational hardness assumption that was formulated by . It states that satisfiability of 3-CNF Boolean formulas cannot be solved more quickly than exponential t ...
(ETH), even if the inputs are restricted to any class of graphs of unbounded treewidth. The ETH is an unproven assumption similar to P ≠ NP, but stronger. Under the same assumption, there are also essentially no other properties that can be used to get polynomial time algorithms. This is formalized as follows: : Theorem ( Grohe): For a
computable Computability is the ability to solve a problem in an effective manner. It is a key topic of the field of computability theory within mathematical logic and the theory of computation within computer science. The computability of a problem is clos ...
class of graphs \mathcal, the homomorphism problem for instances (G,H) with G \in \mathcal is in P if and only if graphs in \mathcal have cores of bounded treewidth (assuming ETH). One can ask whether the problem is at least solvable in a time arbitrarily highly dependent on ''G'', but with a fixed polynomial dependency on the size of ''H''. The answer is again positive if we limit ''G'' to a class of graphs with cores of bounded treewidth, and negative for every other class. In the language of
parameterized complexity In computer science, parameterized complexity is a branch of computational complexity theory that focuses on classifying computational problems according to their inherent difficulty with respect to ''multiple'' parameters of the input or output. ...
, this formally states that the homomorphism problem in \mathcal parameterized by the size (number of edges) of ''G'' exhibits a dichotomy. It is
fixed-parameter tractable In computer science, parameterized complexity is a branch of computational complexity theory that focuses on classifying computational problems according to their inherent difficulty with respect to ''multiple'' parameters of the input or output. T ...
if graphs in \mathcal have cores of bounded treewidth, and W complete otherwise. The same statements hold more generally for constraint satisfaction problems (or for relational structures, in other words). The only assumption needed is that constraints can involve only a bounded number of variables (all relations are of some bounded arity, 2 in the case of graphs). The relevant parameter is then the treewidth of the primal constraint graph.


See also

*
Glossary of graph theory terms This is a glossary of graph theory. Graph theory is the study of graphs, systems of nodes or vertices connected in pairs by lines or edges. Symbols A B ...
*
Homomorphism In algebra, a homomorphism is a morphism, structure-preserving map (mathematics), map between two algebraic structures of the same type (such as two group (mathematics), groups, two ring (mathematics), rings, or two vector spaces). The word ''homo ...
, for the same notion on different algebraic structures *
Graph rewriting In computer science, graph transformation, or graph rewriting, concerns the technique of creating a new graph out of an original graph algorithmically. It has numerous applications, ranging from software engineering (software construction and also ...
* Median graphs, definable as the retracts of
hypercube In geometry, a hypercube is an ''n''-dimensional analogue of a square () and a cube (). It is a closed, compact, convex figure whose 1-skeleton consists of groups of opposite parallel line segments aligned in each of the space's dimensions, p ...
s * Sidorenko's conjecture


Notes


References


General books and expositions

* * * *


In constraint satisfaction and universal algebra

* *


In lattice theory and category theory

* * {{citation, first=C. T., last=Gray, title=The Digraph Lattice, year=2014, url=http://vrs.amsi.org.au/wp-content/uploads/sites/6/2014/09/CORRECTED-digraph-lattice-Gray-updated.pdf ( AMSIbr>Vacation Research Scholarships
student research report supervised by Brian Davey and Jane Pitkethly,
La Trobe University La Trobe University is a public research university based in Melbourne, Victoria, Australia. Its main campus is located in the suburb of Bundoora. The university was established in 1964, becoming the third university in the state of Victoria a ...
). Graph theory Morphisms