Graph Theory

From Privateer

Contents

Graphs

What is a graph?

A graph is a set of verticies, edges, and an incidence relation that associates edges with verticies. A graph is often denoted G . The vertex set of G is then V ( G ) , the set of edges of G is E ( G ) .

This definition is all that constitutes a graph. See the House Graph for a simple example.

Generally, graphs are finite (that is, they have a finite number of edges and verticies), though there are some exceptions.

Basic Definitions and Terminology

Degree

The degree of a vertex is the number of edges incident with it. If there are 3 edges connected to a vertex, it has degree 3. δ ( G ) represents the minimum degree of any vertex in a graph G . Δ ( G ) represents the maximum degree of any vertex in a graph. The maximum degree of the house graph is 3, the minimum degree is 2.

Simple Graph

A simple graph is a graph with no loops or multiedges.

  • Loop: A loop is an edge with the same vertex at both end points.
  • Multiedge: more than one edge between two verticies.

Loops & Multiedges

Examples

Peterson Graph

The Peterson graph is the simple graph whose verticies are the 2-element subsets of a 5-element set, and whose edges are the pairs of disjoint 2-element subsets.

See: Peterson Graph

Complete Graph

The complete graph, denoted K n , is the graph with n verticies, where each vertex is adjacent to every other vertex. Thus the degree of all verticies in K n is equal to n - 1 .

See: K2, K2, K3, K4, K5, K6, K7, K8

Regular Graphs

A regular graph is a graph in which the degree of every vertex is equal. All of the hypercubes are regular graphs, as are the complete graphs.

Hyper Cubes

Examples: Q0, Q1, Q2, Q3, Q4, Q5

Directed Graphs

A directed graph is a graph with directions applied to the edges. The directions can be thought of as a road map with "one way" streets.

A directed version of the house graph.
Enlarge
A directed version of the house graph.

Ways to Represent a Graph

As you have seen from the examples above, the most common way to represent a graph is by drawing it out. Dots represent verticies, lines between the dots represent edges. Here are some other ways to represent graphs:

Edge and Vertex List

An Edge and Vertex list is a list of all of the verticies and edges in a graph, and their incidence relation.

The house graph might be represented like this:

V = { v 1 , v 2 , v 3 , v 4 , v 5 }

E = { e 1 , e 2 , e 3 , e 4 , e 5 }

I :

e 1 = { v 1 , v 2 }

e 2 = { v 5 , v 2 }

e 3 = { v 5 , v 1 }

e 4 = { v 2 , v 3 }

e 5 = { v 5 , v 4 }

e 6 = { v 4 , v 3 }

Edge List

Because the edges in graphs are always connected by at least two verticies, it is possible to simplify the above by just writing an edge list.

The edge list of the house graph: e 1 = { v 1 , v 2 } , e 2 = { v 5 , v 2 } , e 3 = { v 5 , v 1 } , e 4 = { v 2 , v 3 } , e 5 = { v 5 , v 4 } , e 6 = { v 4 , v 3 }

As you can see, this edge list encodes all of the edges and all of the verticies, including which verticies are incident with each other.

Adjacency Matrix

An adjacency matrix is a special binary valued matrix that shows which verticies are incident with each other in a simple graph. The rows and columns are the verticies of the graph listed in the same order. The cells of the matrix are 1 of there is an edge between the two verticies or 0 if there is no edge between the two verticies. The diagonal of the matrix will always be zero. The adjacency matrix is also a symmetric matrix.

The adjacency matrix of the house graph:

v 1

v 2

v 3

v 4

v 5

v 1

01001

v 2

10101

v 3

01010

v 4

00101

v 5

11010

Incidence Matrix

Incidence Matrix

Graph Isomorphisms and Automorphisms

Bipartitions and N-partitions

Examples

Complete bipartite graphs: K12, K23, K13, K34

Walking Graphs

Paths

Königsberg Bridge Problem

Image:Königsberg.png
Map of Königsberg

Euler wondered, whilst wondering about Königsberg, whether it was possible to see the entire city without crossing the same bridge twice. In other words, is it possible to cross all of the bridges in the city exactly once and end up where you started?

Königsberg had seven bridges, crossing the Pregel river. This question translates nicely into a problem of Graph Theory.

Image:Königsberg Bridge Illustration.png

By numbering the bridges and the banks of the river, you can create the following graph:

Image:Königsberg Bridge Graph.png

Try it yourself. Pick a starting vertex, say y , and attempt to find a path that takes you along each edge and returns you to y . You should find it a pretty difficult task. Actually, it turns out that it is impossible to do on this graph.

Eulerean Circuits

Subgraphs

a graph H is a subgraph of a graph G if:

1) the vertex set of H is a subset of the vertex set of G ; V ( H ) V ( G ) , and

2) the edge set of H is a subset of the edge set of G ; E ( H ) E ( G )

For example, P 5 C 5 :

Image:C5toP4.png

Vertex Deleted Subgraphs

A vertex deleted subgraph is a subgraph of a graph with a vertex removed.

This is the complete set of single vertex deleted subgraphs of the House Graph. Image:Vertex Deleted House Graph.png

You might ask yourself whether, given a complete set of vertex deleted graphs for some graph G , if you could figure out what the original graph was. Some properties of the origignal graph jump out. For example, the size of the set of vertex deleted subgraphs is equal to the number of verticies in the original graph. It seems reasonable that given the entire set of vertex deleted subgraphs that you could recreate the entire graph. And, in many cases this is possible. However, there is no proof for any graph, and this is an open problem called the reconstruction conjecture.

Degree Sequences


Havel-Hakimi Algorithm