Search CTRL + K

Session 01 - Introduction to Graph Theory I

Definition

A graph G=(V,E) consists of V, a nonempty set of vertices (or nodes) and E, a set of edges. Each edge has either one or two vertices associated with it, called its endpoints. An edge is said to connect its endpoints.

One could represent a graph with a dots to represent the vertices and lines connecting vertices together which represent the edges.
simple grpah.png
It is possible to have graphs which allows multiple edges to connect the same two vertices,
multigraph.png
Or even direct the edges.
directedgraph.png|500

Remark

The set of vertices may be infinite.
A graph with an infinite vertex set or with an infinite edges set is called an infinite graph.
A graph with a finite vertex set and a finite edge set is called a finite graph.
We will usually consider only finite graphs.

Definition

A simple graph has undirected graphs, no multiple parallel edges and no loops (edges connecting the same vertex to itself).

Definition

Let G=(V,E) be an undirected graph.
If e is an edge wwith enpoints u and v, we say that:

  • u and v are adjacent or neighbors.
  • e is incident with u and v.
  • e connects u and v.
Definition

  • The set of all neighbours of a vertex v is called the neighbourhood if v and is denoted by N(V).
  • The neighbourhood of a set A of vertices is N(A):=vAN(v)
  • The degree of a vertex v, denoted by deg(V) is the number of edges incident with v. Each loop contributes twice to the degree of a vertex.
    • A vertex of degree 0 is isolated.
    • A vertex of degree 1 is pendant.

Theorem

(The Handshaking Theorem) Let G=(V,E) be an undirected graph with m edges. Then:

2m=vVdeg(v)
Proof

Each vertex's degree counts an edge twice.

Theorem

An undirected graph has an even number of vertices of odd degree.

Proof

This immediately follows from the handshaking theorem.

An example of an application of the above theorems:

Problem

How many graphs are there on 103 vertices such that each vertex has degree 7?

Definition

Let G=(V,E) be a directed graph.
If (u,v) is an edge, we say that

  • u is adjacent to v and v is adjacent from u.
  • u is the initial vertex and v is the terminal vertex of (u,v)
  • v is an out-neighbor of u and u is an in-neighbour of v.
Definition

The in-degree of a vertex v, denoted by deg(v) is the number of edges with v as the terminal vertex.
The out-degree of a vertex v, denoted by deg+(v) is the number of edges with v as the initial vertex.

Theorem

(The Handshaking Theorem) Let G=(V,E) be a directed grpah with m edges. Then:

vVdeg(v)=vVdeg+(v)=m

Some Special Graphs

Definition

A complete graph on n vertices, denoted by Kn is a simple graph that contains exactly one edge between each pair of distinct vertices.
completegraph.png

Definition

A cycle Cn, n3, consists of n vertices v1,v2,...,vn and edges {v1,v2},{v2,v3},...,{vn1,vn},{vn,v1}.
cycles.png

Definition

A wheel Wn when we add an additional vertex to a cycle Cn, for n3 and connect this new vertex to each of the n vertices in Cn by new edges.
wheel graph.png

Definition

An ndimensional hypercube, or ncube, denoted by Qn, is a graph that has vertices representing the 2n bit strings of length n. Two vertices are adjacent if and only if the bit strings they represent differ exactly in one position.
cubegraph.png

Definition

A simple graph G is bipartite if the vertex set V can be partitioned into two disjoint sets V1 and V2 such that every edge in the graph connects a vertex V1 and a vertex V2 exclusively. We call such a pair (V1,V2) a bipartition of V.

Example

  • Every even cycle is a bipartite.
  • Every hypercube is bipartite.
  • K3 is not bipartite

Theorem

A simple graph is bipartite if and only it is possible to assign two colours to the vertices of the graph in such a way that no two adjacent vertices are assigned the same color.