Both category theory? and graph theory? study patterns based on diagrams? consisting of nodes and edges. Despite this surface impression, there is in fact very little interaction between the scientific communities of category theorists and of graph theorists.
This article is a modest bridge, indicating that the category? of graphs? (in the usual graph-theorist’s sense – see for example Diestel) has some very nice properties.
By a simple graph?, we mean a set? equipped with a symmetric? reflexive? relation? . Morphisms? between simple graphs are functions? which preserve the given relations. Elements of are called vertices. Write to say .
When drawing graphs, we put an edge between vertices , iff and . In particular, we will not bother drawing an edge between and itself; we can think of it as tacitly there if we like. Perhaps better yet, that tacit edge can be thought of as a path of length from to itself (and who bothers drawing a path of length ?). In any case, it is clear that there is a natural bijection between
simple graph structures on in the graph-theorist’s sense (i.e., graphs that are undirected, loop-free, and with at most one edge between two vertices), and
reflexive symmetric relations on ;
thus we are within our rights to identify these two concepts.
This maneuver allows a simple definition of morphism? as a function? (between the sets of vertices) that preserves the edge relation:
This then includes natural operations like edge contractions as quotients. Namely, if is a morphism as defined above, and if we have and , we still have by default, so we can think of as contracting the edge between and in down to an edge of length between and itself in .
The category? of simple graphs is denoted by .
The category has very good properties. For example,
is a Grothendieck quasitopos?. In particular, it is a regular category? and even a logos?, and is also regular. It is also -extensive?.
(See also Adamek and Herrlich.) Let be the category of sets (or cardinality) and and functions between them. A presheaf on is a directed reflexive (multi)graph equipped with a direction-reversing involution on the set of edges. For this presheaf topos, there is just one nontrivial -dense sieve, namely the inclusion
and so the category of -separated presheaves? is equivalent to the category of presheaves such that the induced map
which is the source-target pairing , is monic. Such a structure is tantamount to a set equipped with a reflexive symmetric binary relation. On the other hand, a Grothendieck quasitopos is, essentially by definition, the category of separated presheaves for a topology on a presheaf topos, in this case the -topology.
Being a quasitopos with small coproducts, it is -extensive provided that coproducts are disjoint. However, this is trivial to check (it even suffices to check, according to Elephant? 2.6.5, that is a regular monomorphism?, or that is a disjoint coproduct, which it obviously is).
It is easy to describe monos? and epis? in . For, let be the underlying vertex-set forgetful functor?.
The forgetful functor is faithful, in fact exhibits as a topological concrete category?.
We omit the easy proof. Next we have two easy results:
reflects? monos and epis (because is faithful).
preserves? limits? and colimits? (because it has a left adjoint? and a right adjoint? ).
It follows that both preserves and reflects monos and epis. As a result, we can prove various simple exactness results in . For instance:
In , the pushout? of any mono is a mono.
Suppose we have a pushout diagram in :
Since preserves both pushouts and monos, and since the pushout of a mono in is a mono, we have that is monic in . Since reflects monos, this means is monic in .
As already observed, there is a chain of adjoint functors . But in fact there is a fourth functor in the chain: has a left adjoint , the connected components? functor. If is the simple graph consisting of two vertices with an edge between them, then there is a reflexive fork
and is formed as a reflexive coequalizer? of the induced diagram:
, and preserves products.
preserves products because being a reflexive coequalizer, it is a sifted colimit? of product-preserving functors. For graphs , there is a natural map which at the underlying vertex-set level sends a vertex to its connected component; if is any set, then a graph map must send any two vertices with an edge between them to the same point, and so factors as for a unique map , and this establishes the adjunction .
If are maps in , then their equalizer? is given at the vertex level by
and at the edge level by ; in other words, if belong to and there is an edge between them in , then that edge lies in . To express this last condition, we say the subgraph is full (at the edge level).
Thus, is a regular mono in iff both is monic in and is full at the edge level.
The coequalizer? of and , say , is given at the vertex level by
and at the edge level by taking the image of the composite , so that
Thus, is a regular epimorphism? if it is surjective at both the vertex and edge levels.
The category of simple graphs has a ternary factorization system? as follows: each morphism factors as
where
is a surjection between vertex-sets and at the edge level, i.e., is a regular epi?;
induces an identity between vertex-sets (hence is jointly monic and epic?), but without necessarily being full at the edge level;
is given by an injection between vertex-sets and is full at the edge level, and (thus) is a regular mono?.
The factorization of into followed by is the (regular epi)-mono factorization, while the factorization of into followed by is the epi-(regular mono) factorization. To round out the discussion, we prove that regular monos are stable under pushout (which ensures that the epi-(regular mono) factorization is an orthogonal factorization system?).