Search⌘ K

Directed Graphs

Explore the concept of directed graphs or digraphs where edges have specific directions. Understand the definitions of simple digraphs and how they differ from graphs. Learn how to represent digraphs using adjacency matrices and adjacency lists, focusing on edge orientation and structure.

Digraphs

A directed graph or a digraph is a graph where each edge has an orientation.

That means each edge begins at a source vertex and ends at a target vertex. We call the source vertex the tail and the target vertex the head of the edge.

An edge in a directed graph
An edge in a directed graph

We also want our notation to emphasize this notion of directionality. So, we do the obvious and represent an edge as an ordered pair (u,v)(u,v), where uu is the tail and vv is the head of the edge.

In the context of a digraph, an edge (u,v)(u,v) goes from a vertex uu to a vertex vv and can’t be represented as ...