graph-theory

Definition

Vertex

A vertex is a fundamental unit in graph theory, representing an individual point where two or more edges meet in a graph.

The number of vertices of a graph can be denoted as or .

Adjacency

Two vertices are called adjacent if there exists an edge inbetween.

The edge connecting and is called the incident edge of and .

Neighbours

Undirected Neighbours

The set of adjacent vertices of a vertex in an undirected graph is denoted as:

The number of neighbours is given by:

Directed Neighbours

The set of successors of a vertex in a directed graph is given by:

The set of predecessors of a vertex in a directed graph is given by:

The number of successors and predecessors is given by:

Degree

Degree

The degree of a vertex is the number of neighbours of :

The minimum degree of a graph is the smallest degree of any vertex in :

The maximum degree of a graph is the largest degree of any vertex in :

Adjacency Matrix

Definition

Adjacency Matrix

An adjacency matrix is a square matrix used to represent a graph. The elements of the matrix indicate whether pairs of vertices are adjacent or not in the graph.

For undirected graphs, the adjacency matrix is symmetric.

Link to original