Following Arrows Rather Than Mere Adjacency

A directed graph, or digraph, has ordered edges. An edge u→v permits travel from u to v; it does not by itself permit travel back.


The out-degree of a vertex counts arrows leaving it, and the in-degree counts arrows entering it. A loop contributes one to each count, though most introductory examples omit loops unless stated.


A directed path follows arrow orientation at every step. Therefore reachability is usually asymmetric: a path from one vertex to another need not give a path in reverse.


A directed cycle returns to its start while respecting all arrow directions. It supplies mutual reachability among its vertices but says nothing automatically about vertices attached by one-way edges.


When given an edge list, use a small incoming/outgoing table. This avoids reversing an arrow by eye and makes degree counts transparent. For reachability, begin at the start vertex and repeatedly add endpoints of arrows whose tails are already reached; stop when no new vertices appear.


Do not import undirected connectivity conclusions into a digraph. The number of arrows incident to a vertex is not enough to decide whether a directed route exists; their directions and ordering matter.

A directed graph has edges {a→b,b→c,c→a,c→d}. What are the in-degree and out-degree of c?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

A directed graph has edges {p→q,r→q,q→s,s→r}. Which is a directed path?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Mark Yourself Question

  1. Grab a piece of paper and try this problem yourself.
  2. When you're done, check the "I have answered this question" box below.
  3. View the solution and report whether you got it right or wrong.

A directed graph has edges {u→v,v→w,w→v,x→u}.

  1. Give the in-degree and out-degree of v.
  2. List all vertices reachable from x, including x itself.

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors