Overview

A directed graph is a pair , where is a finite set and is a binary relation on . An undirected graph is a pair , where is a finite set and is a set of unordered pair of vertices from . In both types of graphs, is called the vertex set of and is called the edge set of .

A graph that allows multiple edges between vertices is called a multigraph. It is analagous to the concept of multisets in set theory.

Incidence

If is an edge of a directed graph, we say is incident to and incident from . Furthermore, we say is adjacent to . If was instead an edge of an undirected graph, we say is incident on and . Likewise, is adjacent to and is adjacent to .

Handshake Lemma

In any graph, the sum of the degrees of vertices in the graph is always twice the number of edges:

Walks

Let be a graph. A walk of is a sequence of vertices such that consecutive vertices in the sequence are adjacent in . More precisely, a walk (of length ) from vertex to vertex is a sequence of vertices such that for . We say is reachable from via .

Trails

A trail is a walk in which no edge is repeated.

Paths

A path is a trail in which no vertex is repeated (except possibly the first and last). A cycle is a path that starts and ends at the same vertex. A graph with no cycles is acyclic.

In computer science, a cycle is sometimes required to have more than one edge:

  • In a directed graph, path is a cycle if and the path contains at least one edge.
  • In an undirected graph, path is a cycle if and all edges are distinct.

Isomorphisms

An isomorphism between two graphs and is a bijection between the vertices of the graphs such that is an edge in if and only if is an edge in . Here parenthesis are used to denote either ordered pairs (for directed graphs) or unordered pairs (for undirected graphs).

We say and are isomorphic, denoted , if and only if there exists an isomorphism between and .

Subgraphs

We say is a subgraph of provided and . We say is an induced subgraph of provided and every edge in whose vertices are still in is also an edge in .

Bibliography