Skip to main content
Mathematics LibreTexts

12.2: Digraphs

  • Page ID
    97945
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    In this section, we introduce another useful variant of a graph. In a graph, the existence of an edge \(xy\) can be used to model a connection between \(x\) and \(y\) that goes in both ways. However, sometimes such a model is insufficient. For instance, perhaps it is possible to fly from Atlanta directly to Fargo but not possible to fly from Fargo directly to Atlanta. In a graph representing the airline network, an edge between Atlanta and Fargo would lose the information that the flights only operate in one direction. To deal with this problem, we introduce a new discrete structure. A digraph \(G\) is a pair \((V,E)\) where \(V\) is a vertex set and \(E⊂V \times V\) with \(x \neq y\) for every \((x,y) \in E\). We consider the pair \((x,y)\) as a directed edge from \(x\) to \(y\). Note that for distinct vertices \(x\) and \(y\) from \(V\), the ordered pairs \((x,y)\) and \((y,x)\) are distinct, so the digraph may have one, both or neither of the directed edges \((x,y)\) and \((y,x)\). This is in contrast to graphs, where edges are sets, so \(\{x,y\}\) and \(\{y,x\}\) are the same.

    Diagrams of digraphs use arrowheads on the edges to indicate direction. This is illustrated in Figure 12.12. For example, the digraph illustrated there contains the edge \((a,f)\) but not the edge \((f,a)\). It does contain both edges \((c,d)\) and \((d,c)\), however.

    Screen Shot 2022-03-10 at 10.12.41 PM.png
    Figure 12.12. A Digraph

    When \(\textbf{G}\) is a digraph, a sequence \(P=(r=u_0,u_1,…,u_t=x)\) of distinct vertices is called a directed path from \(r\) to \(x\) when \((u_iu_{i+1})\) is a directed edge in \(\textbf{G}\) for every \(i=0,1,…,t−1\). A directed path \(C=(r=u_0,u_1,…,u_t=x)\) is called a directed cycle when \((u_t,u_0)\) is a directed edge of \(\textbf{G}\).


    This page titled 12.2: Digraphs is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Mitchel T. Keller & William T. Trotter via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.