Directed graphs

Overview
Important

A directed graph (digraph) consists of a set of vertices VV and a set of ordered pairs of vertices EE, called directed edges or arcs. Each edge (u,v)(u, v) starts at vertex uu (the tail) and ends at vertex vv (the head).

Important properties

  • Edges have a direction: (u,v)(u, v) is different from (v,u)(v, u).

  • 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).