This page is about the concept of directed graphs that is usual in combinatorics. For the notion of directed graph as commonly understood in category theory, see quiver. For some commentary on how the two formalizations relate to one another, see directed graph.
In combinatorics, a digraph (a shortening of directed graph) consists of a set and a binary relation on that set that is irreflexive. The elements of the set are called nodes or vertices, and elements of the relation are called edges or arcs; the idea is that whenever an ordered pair belongs to the relation, then we depict it as an arrow or directed edge going from node to node . The irreflexivity condition means there is never an edge from a node to itself.
In this section we collect some definitions that are fundamental to digraph theory, but presented largely from the point of view of category theory.
(digraph)
A digraph is a pair of sets, with . Here, denotes the product, and the relative complement in the category of sets. The elements of are called vertices, the elements of are called arcs. For an arc, we call the source of and the target of , also denoted and respectively.
A morphism from a digraph to a digraph is a function such that whenever . Digraphs and their morphisms form a category denoted .
A digraph may be regarded as a quiver in an evident way, with source and target functions . It is straightforward that is (equivalent to) a full subcategory of the category of quivers Quiv. Of course most quivers are not digraphs since quivers can have parallel edges: distinct edges where and .
Some useful examples of digraphs are based on ordinals:
If is an ordinal, we may form a digraph where is the underlying set of and is the relation . We call this an ordinal digraph and denote it by the ordinal itself.
(walk in a digraph) Suppose is a digraph. A walk in is a digraph-morphism where is an ordinal digraph.
Notice that for , the hom-set may be identified with the set of vertices of . The definition of graph morphism implies that the underlying set functor is faithful, and realizes as a concrete category.
For , the hom-set may be identified with the set of arcs of . However, the arc-set functor is very far from being faithful.
If we let denote the full subcategory of consisting of the ordinal digraphs , then the inclusion induces a functor according to the usual “nerve” construction
and this nerve functor is exactly the full embedding . Since full embeddings reflect and preserve isomorphisms, a digraph morphism is an isomorphism iff the vertex-function and arc-function are isomorphisms (which is in any case obvious from the definition of digraph morphism, but this underscores the general importance of walks).
Generally we will only be interested in walks such that in the sense of ordinals; here is of course the first infinite ordinal. Unwinding the definitions, here is an elementary description of such walks:
(walk in a digraph; elementary definition)
Suppose is a digraph. A walk in consists of
such that
The phrase -vertex path means any path whose domain is .
Some special cases: If , then is called the empty walk. We have already seen that a -walk is tantamount to a vertex, and that a 2-walk is tantamount to an edge. We call a walk a ray in .
Another useful example of a digraph is a finite cyclic order. For each , there is a digraph whose vertex set is the underlying set of the finite cyclic group , and whose arc relation is the set .
The category is not especially well-behaved for a category theorist. For example, it doesn’t have a terminal object (no, the ordinal digraph is not terminal), and it does not admit all coequalizers. In both cases the culprit is the irreflexivity condition.
It does however have products indexed over nonempty sets, and equalizers. These limits are computed as they are in Quiv, e.g., the quiver product of two digraphs is again a digraph and is their product in . Such limits are easy to compute because , being a presheaf topos , has limits (and colimits) that are computed pointwise/objectwise.
It follows from these observations that has pullbacks which are simply -pullbacks; they are computed objectwise at the objects , i.e., one simply takes pullbacks in at each of the vertex and edge levels.
In our development, it will be useful to characterize various classes of monomorphisms in . We begin with plain monomorphisms.
A morphism of digraphs is monic iff its underlying function is monic (injective).
It is well-known that faithful functors reflect monomorphisms and epimorphisms. For suppose is monic. Given a diagram in of the form
if we have then , whence by monicity of . Since is faithful, it follows that ; therefore is monic. The argument for epimorphisms is dual.
For the other direction, use the fact that is representable. It follows immediately from the definition of monomorphism that representable functors preserve monomorphisms, so if is monic, then so is .
(Still to come: characterization of regular monomorphisms.)
(path in a digraph)
Suppose is a digraph. A path in is a walk whose underlying function is injective.
Or what is the same, that is a monomorphism in . In view of Proposition , we may also define a path to be a monic walk. (Notice this digraph concept of path is at variance with the concept of path in topology which is simply a continuous map into a topological space, where there is no assumption that its underlying function is injective.)
(trail in a digraph) Suppose is a digraph. A trail in is a walk such that the partial function with is injective.
The domain of is canonically identified with the arc set of , and the trail condition is equivalent to saying that (which we again denote as ), as a function between edge sets , is a monomorphism in .
We have the following easy result.
In a digraph , every path is a trail.
Since we just observed that a path is the same as a monic walk, and since representable functors like preserve monomorphisms, it follows that is a monomorphism.
Continuing the theme of monic digraph morphisms, we introduce the notion of cycle:
An -cycle in a digraph is a monic morphism (see Example ). A cycle in is just an -cycle in for some . A digraph is acyclic if it admits no cycles.
There is a natural bijection between digraph morphisms and walks such that . Indeed we have a digraph quotient map defined as the mapping , and the walk associated with is . The map induces a bijection on arcs:
Thus if is monic, we have a composite injective map in ,
which implies that the walk associated with a cycle is a trail.
For various digraph (directed graph) notions above, it can be useful to consider parallel notions for undirected graphs. A slick method for doing this is by invoking a “symmetrizing” functor construction.
For a digraph , we define to have the same vertices as , and the arc relation to be the symmetric closure of the arc relation of . In other words, is an arc of iff or is an arc of .
Clearly the symmetric closure of an irreflexive relation remains irreflexive, so is again a digraph, and the assignment is the object part of an obvious functor . Also the monomorphism that is the identity on vertices is the component of a natural transformation
The functor carries an idempotent monad structure.
It is clear that is an isomorphism (and even an identity map) because the operation of taking the symmetric closure of a relation is itself idempotent. Similarly is also an identity map: . The multiplication of the monad is defined by taking the inverse: . Then is natural and the unit law is automatic; the other unit law follows. The associativity of follows by inverting a naturality square for .
Morally we may consider the category of undirected graphs to be the category of algebras over the monad . In any case, this is a full subcategory of consisting of digraphs of the form .
We proceed to “weaken” various of the notions above to take into account the undirected graph context, simply by applying the functor . For example:
(Obviously, a weak walk need not be literally a walk ; cf. red herring principle.)
Alternatively, we could define a weak walk to be a digraph morphism where is an ordinal digraph: the two ways of defining weak walks are (naturally) equivalent.
Similarly,
A weak trail is defined to be a trail .
A weak cycle is defined to be a cycle .
In contemporary mathematics, ordered pairs , are called antiparallel arcs.
(in-neighborhood, out-neighbourhood)
Suppose is a digraph and . The in-neighborhood of in , denoted , is the set . The out-neighborhood of in , denoted , is the set .
We note that the rationale for the slightly non-standard notation is to have it be intuitively understandable: the arrow points away from the vertex and points to the letter which stands for the set which contains the out-neighbours.
(in-degree, out-degree)
Suppose is a digraph and . The in-degree of in , denoted , is the cardinality of the in-neighborhood of in . The out-degree is defined analogously.
The axiom implies—digraphs being irreflexive— that always . Walks are only allowed to be non-injective every other step, so to speak.
In a sense the least injective walk is obtained by considering any digraph containing a 2-cycle (see below) , taking and defining to alternate back and forth on forever. This walk has a two-element image.
(start vertex, --walk in a digraph)
Suppose is a digraph. Suppose is a non-empty walk in . Then is called the start vertex of . Suppose that are subsets of , not necessarily disjoint. Then is an –-path if and only if is a finite ordinal and , and implies . If and are singletons, one also writes –-path for –-path.
Discussion of weak trails from a previous revision mentioned Power’s proof of unique interpretability of pasting schemes.
The standard term in topology for a path which is free of self-intersections is arc (eg Kowalksky 1965, Definition 29b). As a saving grace, the standard way to rigorously define the arcs of plane digraphs uses precisely the topological arcs.
Allowing 2-cycles, yet neither loops nor parallel arcs, has become a standard meaning of digraph in combinatorics.
(acyclic digraph (DAG); classical definition)
Suppose is a digraph. Then is called acyclic if and only if there does not exist any cycle in .
A usual abbreviation in combinatorics for acyclic directed graph is DAG.
Here, “classical” refers to the negative definition.
The set of all weak cycles of a digraph is denoted .
The following non-standard definition is useful in when constructing proofs of Power’s pasting theorem:
(constructive acyclic digraph (cDAG))
A constructive acyclic digraph is a triple of data
subject to the axioms
In words, the axioms mean that gives us one vertex on any given weak cycle whose out-degree on is two. Then witnesses ‘s not being a cycle. Evidently, a (classical) DAG can usually be made a cDAG in many ways: there usually are many functions one can specify and that satisfy the axioms. We are here not interested in describing or counting these possibilities, rather in doing things with a given cDAG.
There is an apparently inescapable arbitrariness in whether to favor out-neighbors or in-neighbor when defining constructive DAG. The above definition would to all intents and purposes be equivalent the one obtained by replacing the conclusion in the axiom with “then ”.
The following concept appears (under another name) in Power’s proof:
(king, coking, -king, -coking, -king, -coking)
Suppose is a digraph. A vertex of is a king (resp. coking) of if and only if (resp. ) for all .
For any finite cardinal , a vertex of is a -king if and only if each vertex of can be reached along a path, starting with , the path having at most arcs.
For any finite cardinal , a vertex of is a -coking if and only if for each there exists at least one path starting with and ending with and having at most arcs.
A vertex of is an -king if and only if each vertex of can be reached along a path of , starting with , and having any finite number of arcs.
A vertex of is an -coking if and only if for each there is at least one path of , starting with , ending with , and having any finite number of arcs.
The term -king is a natural variant of the usual term -king in digraph theory. By definition, for each , each -(co)king is an -(co)king. Of course, a vertex can be a king and a coking simultaneously. (Which is why e.g. in Power’s proof, non-equality of the king and the coking must be made a separate axiom in the definition of what Power calls plane graph with source and sink).
(plane digraph)
A plane digraph consists of the data
and the axioms
(v.connect) for each , and ,
(free.interior) if and , then ,
(not.par) if and if and , then ,
(disjoint.interiors) if and ( , and , and ), then .
Note that plane digraphs are often introduced into a context like (abstract) digraphs are, i.e. by writing , although
the type of is invisible from this notation (it may be a digraph or a plane digraph)
for a plane digraph we do not in general have .
We make use of the treatment of undirected plane graphs given in (Diestel, Chapter 4), with some adaptations made for the present purposes:
here, arc means arc in the usual topological sense, without exception, while, since the author focuses on undirected graphs, in Diestel, “arc” is defined to be a subset of the plane, in particular is not parametrized, in particular does not carry directional information (compare def. where said information is used).
in (Diestel, Chapter 4), both and in the definition of plane graphs are required to be finite sets. Here we make no such restriction (cf. ).
for ease of reference, we calibrate the point-set topological terminology according to Introduction to Topology (example: we will say “component” instead of “region”) when defining faces, and also Munkres 2000.
An example of a plane digraph with countably infinite vertex set, and whose satisfying the axioms of plane digraphs is evident, is given by , with and with and . Note that this example (0) is not a pasting scheme in the sense of Power (already for the strong reason that in it there does not exist any -coking), and (1), while large, it would make for a rather dull and vacuously-uniquely-interpretable pasting diagram: there are no arrows that could possibly be composed, let alone is there any 2-cell.
In combinatorics, this is sometimes referred to as an infinite star.
Applications of the following standard concept are e.g. the study of maps on surfaces, and Power’s (proof) of unique interpretability of pasting schemes:
(face of a plane digraph)
Suppose is a plane digraph. The set of faces of , denoted , is the set of connected components, in the sense of Section 7, of the relative complement , where .
A face of is a member of the set . Each face of is an open connected subspace of the plane.
Of course one needs a map from plane digraphs to (abstract) digraphs:
(the (abstract) digraph of a plane digraph)
Suppose is a plane digraph. Then is the digraph defined as follows: it has vertex set and arc set .
Note that by axiom (v.connect), is a subset of , and because each is an topological arc, and, as such, injective, is moreover disjoint from the diagonal , so has the type required by def. .
All digraph-theoretic technical terms like out-neighborhood, outdegree which are defined for digraphs are defined for plane digraphs by first applying the map to , then applying the digraph-theoretic definition, then applying the inverse of .
A central technical tool in Power’s proof are boundary walks: boundary walks validate a form of the red herring principle: each boundary walk is a weak walk, yet need not be a walk.
The boundary walks one works with when using A.J. Power’s application of plane digraphs to category theory are often weak trails, “often” in the sense that most pasting diagrams one encounters in practice do not have any arc-repetitions. Equivalently, the 1-cells of usual pasting diagrams have an underlying undirected graphs with is bridgeless. However, this is not generally true, and to have both walks and trails is not futile but necessary: a typical example of a pasting diagram occurring naturally in category theory are whiskering diagrams: the boundary trail of the exterior face of the typical whiskering diagram does have arc-repetions, hence is not a trail but only a walk.
The convention to have digraph imply that there be no loops and no parallel arcs, and resort to other terms such as directed pseudograph to signal loops or parallel arcs, is widespread in modern combinatorics. For example, see p. 2 of (Gutin and Bang-Jensen), and Section 1.2 of (Csaba et al).
Unsurprisingly, while the convention that digraph implies that there be no parallel arrows has been widely adopted nowadays, there is a generous disregard for whether a digraph may contain loops. In this set-theoretical definition given above, this corresponds to the decision whether to allow to contain elements of the form .
The terms walk, trail and path are standard in modern combinatorics. They are in particular compatible with standard usage in the theory of undirected graphs, in that upon forgetting (so to speak) the directions in the various definitions, one obtains the standard notions of walk, trail and path in (undirected) graph theory (for example Figure 1.8 illustrates precisely this convention).
Many (e.g. p. 11 and Chapter 1) modern reference define walks to be sequences whose codomain conains both vertices and arcs. For simplicity we do not do so. Having paths consist of vertices only, and letting the structure of the target space determine the axioms seems cleaner. We can afford to make this simplification only because digraphs cannot have any parallel arcs: for digraphs, our definition and the vertex-arc-alternating definition of p. 11 are equivalent to all intents and purposes. There is, however a good reason why e.g. Bondy and Murty use the latter definition: for them, a directed graph is (cf. 10.1, though Bondy–Murty’s formalization is different from usual quivers and a rare hybrid between purely functional and purely relation-theoretic formalizations: they use maps with codomain set ) not a digraph but a quiver, and—evidently—if multiple parallel arcs are permitted, then a vertex-sequence does not contain enough information to define a “walk”. Upon stepping from one vertex to the next, a vertex sequence by itself cannot tell one which parallel arc to pick.
Needless to say (since given by the definitions), in a trail, arc-repetitions are forbidden, and in a path, any repetition is forbidden.
The perhaps oddly hybrid concept of trail has a crucial role in A. J. Power’s (proof) of unique interpretability of pasting schemes: any face of a plane digraph determines a boundary trail which always is a weak trail.
Generically, such a boundary trail has many vertex-repetitions, but it never has any arc-repetition.
The terminology “king” above is standard in modern digraph theory; the term “coking” is not, but in tune with category-theoretic usages. The term “-king” appears not to be attested but is in tune with a standard notion of -king in digraph-theory, and also with some usages in mathematics which let signal that some parameter is unconstrained (cf. omega-category omega-groupoid).
The choice of definitions documented here is biased towards (one of) the uses digraphs are put to in category theory, in particular in giving a rigorous justification of pasting diagrams. The most salient example of this is the emphasis given to plane digraphs in this article.
A reason for treating the concept of -kings here is A. J. Power’s proof (Power 1990) of a pasting theorem, a rigorous justification of the notational practice of pasting diagrams: therein, both -kings and -cokings play an important role (Power calls -kings “sources” and -cokings “sinks”; both these terms clash with two standard technical terms in, respectively, contemporary digraph theory and flow theory, which is why the alternative terms were chosen).
Moreover, Power makes crucial use of a concept of addition of –-paths, which is one of the reasons why –-paths have been introduced.
One example of why digraphs are relevant to category theory are pasting schemes, which are a rigorous justification of the (older) notational practice of pasting diagrams. Pasting diagrams are fundamental to higher category theory: already the axioms for various notions of higher categories are formalized in terms of pasting diagrams. The formal justification of pasting diagrams was achieved in the late 1980. Note that there are more than one definition of pasting scheme in the literature. E.g. there are M. Johnson’s pasting schemes ((Johnson 1987, Chapter 2), (Johnson 1989, Section 2)) and Power’s pasting schemes (Power 1990). The definition which is strictly relevant to the present article is Power’s. He defines defines pasting schemes as a special kind of digraph (Power 1990, Section 3), details will be found at pasting scheme.
R. Diestel, Graph Theory, 4. ed., Springer 2010
Gregory Gutin?, Jørgen Bang-Jensen?: Digraphs: Theory, Algorithms and Applications. Springer Monographs in Mathematics. Second Edition (2009)
Last revised on June 11, 2022 at 10:49:14. See the history of this page for a list of all contributions to it.