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.
We'll cover the following...
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.
We also want our notation to emphasize this notion of directionality. So, we do the obvious and represent an edge as an ordered pair , where is the tail and is the head of the edge.
In the context of a digraph, an edge goes from a vertex to a vertex and can’t be represented as ...