Directed graphs
Overview
Important
A directed graph (digraph) consists of a set of vertices and a set of ordered pairs of vertices , called directed edges or arcs. Each edge starts at vertex (the tail) and ends at vertex (the head).
Important properties
-
Edges have a direction: is different from .
-
A vertex can have incoming edges (in-degree) and outgoing edges (out-degree).
-
Directed graphs can have cycles (a path that starts and ends at the same vertex, following the direction of edges).
-
A directed graph can have loops (edges from a vertex to itself).