Undirected Graphs
(Undirected) Graph
A (undirected) graph is an ordered pair where is a set whose elements are called vertices or nodes. is a set of pairs of vertices, called arcs or edges.
An empty graph is a graph that has en empty set of vertices.
Order and Size
The order of a graph is the number of vertices it has, and the size of a graph is the number of edges it has.
Directed Graphs
Directed Graph
A directed graph, also called a digraph, is a graph in which the edges have a direction. That is is a set of ordered pairs of vertices, called directed edges.
A digraph thus consists of two functions, source and target .
Path
A path is a finite sequence of edges in a graph such that for all .
Def Directed Graph Homomorphism
Directed graph homomorphism is a mapping of edges to edges and vertices to vertices that preserves sources and targets.