A graph is a pair with
.
Loops and multiple edges are forbidden.
is the set of vertices of
.
is the set of edges of
.
is the complete graph on
vertices (all
edges).
,
is a cycle of length
; it has vertices
and edges
.
Two graphs are isomorphic (symbol
) if there is a
bijection
.
A subgraph of a graph is a graph
with
and
.
is an induced subgraph if
. The
induced subgraph with vertex set
is written
.
is a spanning subgraph if
.
A walk in a graph is a sequence of vertices
. Its length is
. It is closed if
.
A trail is a walk with no repeated edges.
A path is a walk (a trail) with no repeated vertices.
A cycle is a closed walk of length with distinct vertices
except that the frist and last are equal (isomorphic to
).
A Hamilton path/cycle is a path/cycle which goes through every vertex of the graph.
A graph is Hamiltonian if it has a Hamilton cycle.
Let be a vertex of
, its neighbours or adjacent vertices are
.
The degree of a vertex is
.
The degree sequence of a graph is a graph with vertices
is
.
The minimum/maximum degree of a vertex of is denoted
or
respectively.
A graph is regular if
.
is the number of edges of
, its size.
is the number of edges of
, its order.
To solve problems try induction (on vertices, edges, and other things), try double counting (counting something in more than one way), consider the pigeon hole principle and consider extreme cases.
A graph is connected if every pair of vertices is joined by a path.
The relationship on where
where is a path between
and
is an equivalence relation. The equivalence classes are called
components of
.
A graph is acyclic if it has no cycles.
A tree is a connected acyclic graph.
A forest is an acycle graph.
The following are equivalent
ii i. If
were a cycle in
and
then any
path in
passing via
could be patched up to
to
give a path in
. Contradiction.
i iii. Let
. Since
connected
path in
so there is a cycle in
. Contradiction.
iii i. Suppose
is not connected. Let
be vertices of
belonging to different components.
contains no
cycles. Contradiction.
A graph is connected iff it has a spanning tree (i.e. has a
subgroup
,
a tree and
).
Let be minimal connected spanning subgraph of
. By previous
theorem it is a tree.
A leaf is a vertex with
.
Every tree of order
has at least two leaves.
A tree of order has size
.
. (In fact a
connected graph
with
is a tree, exercise.)
If vertices are labelled
there are
possible
edges and each subset gives a graph so there are
possible graphs. If the vertices are unlabelled then each graph can be
labelled in at most
possible ways. So there are at least
graphs.
There are labelled trees of order
.
Select the lowest labelled leaf. Write down its neighbour. Delete the
leaf. Repeat until just two vertices remain. Now have a function from
set of labelled trees of order
to
.
Claim: is injective. Each vertex
appears
times in the
sequence. Leaves are vertices not appearing. Given a sequence
let
be the least vertex not appearing,
join it to
. Let
be the least vertex not appearing in the
new sequence
, join it to
. Repeat
until there are only two nodes not in
, join
them together. The original graph is reconstructed.
Claim: is surjective. Every sequence produces a connected acyclic graph
with
which must be a tree (or else add more
edges to make a tree and produce a contradiction).
Deduce that is a bijection.
A graph is bipartite with vertex classes if
and
partition
and no edge of
lies within
or
(every edge
goes between them). We say that
and
are independent sets. We
sometimes think of colouring
red and
blue.
A graph is bipartite iff it contains no odd cycles.
We may suppose that the graph is connected, since a graph is
bipartite if its components are bipartite.
Let the distance between
be the length of the
shortest
path. Let
. Define
for
.
Note that an edge of can join vertices in
and
only if
or
or
.
Claim. There is no edge between vertices in . Proof. If
then select paths
and
of length
. Let
be the
last common vertex. Then
,
and
form a cycle of length
contradicting absence of odd cycles.
Colour
red and
blue to give a bipartition of
.
is the complete bipartite graph with vertex classes of order
and
with all
edges.
A graph that can be drawn in the plane without crossings is planar. A graph drawn in the plane is a plane graph.
If we omit (``cut out'') the vertices and edges of a plane graph from the plane the remainder falls into connected components called faces or countries.
Let be a connected plane graph with
vertices,
edges and
faces. Then
.
If there is a cycle
in
. Then any
separates two different faces. Apply induction to
gives
.
It is convenient to use stereographic projection to consider a plane
graph as drawn on the sphere. Then is connected iff all the faces
are simply connected (homeomorphic to the unit disc).
A bridge in a plane graph is an edge whose removal increases the number of components.
In a bridgeless plane graph every edge separates two different faces.
where
is the number of
-sided faces.
The girth of a graph is the length of the shortest cycle.
Let be a bridgeless plane graph with
vertices and girth
. Then
. In particular a plane
graph has at most
edges.
By Euler's theorem . But
.
Kuratowski showed that the only non-planar graphs are those that
contain a subdivision of or
obtained by replacing
edges with paths.
A graph is Eulerian iff it is connected and every vertex has even degree.
By induction on the number of edges. True for the empty graph. Since
there are no leaves so
is not a tree. Therefore
must contain a cycle
. Each component of
has
vertices of even degree, so by induction hypothesis each has an Euler
circuit. By traversing
take time out to traverse each of these
circuits when first encountered. We produce an Euler circuit for
as
is connected.
A connected graph has an Euler trail from a vertex
to a vertex
iff
and
are the only vertices of odd degree.
If and
are the only vertices of odd degree then form
by
adding a new vertex
and joining it to
and
. By the theorem
has an Euler circuit. Deleting
gives an Euler trail from
to
.
John Fremlin 2010-02-17