A graph g with the vertices V -or nodes- and edges E is denoted as g = G,V
. The set of edges E is a set of ordinary pairs like E = {{v,v'}
v, v'
V }. A graph is called finite if the cardinality of the set of vertices V as well as the set of edges E is countable. A graph is called infinite if either the set of vertices V or the set of edges E is not countable, i.e. either the set of vertices or the set of edges each have infinite cardinality. A
in a graph G is a sequence of vertices
with i
0 and such that for each i with
there is an edge
. A path is called a cycle if
for some
.