Abstract Definitions and Examples of Graphs

by Dale Winter

As mentioned in lesson 1, pictorial representations of graphs are really useful representations, but are sometimes inconvenient to use when proving theorems about combinatorial graphs. For example, planar graphs (graphs that can be drawn on a page so that no edges cross) obey the following formula:

v - e + f = 2

where v represents the number of vertices of the graph, e is the number of edges that the graph has, and f is the number of faces that the graph has. (We haven't defined faces yet - they are any portion of the page that is enclosed by edges of the graph).




  • How could you prove this formula?

  • If you took the summer course Geometry and the Imagination, then you might remember that we proved a similar formula:


  • v - e + f = 2k

    where k = 1 for a sphere, k = 0 for a Euclidean plane, and k = 1 for a hyperbolic plane. We did the case of the sphere in class. Remember that we put a 'grid' of triangles on the sphere, and then counted up the number of faces, edges and vertices. The formula we got for the sphere was:

    v - e + f = 2

    which is exactly the same as the formula for the planar graph (i.e. graph that you can draw in the Euclidean plane, a.k.a. a piece of paper). Why is the formula for a planar graph the same as the geometry formula for the sphere (and not the same as the geometry formula for the Euclidean plane) ?

    Picture of Graphs Versus Abstract Definitions

    One of the approaches that you might have tried in the thinking opportunity above is to draw some examples of planar graphs, and count the numbers of edges, vertices and faces to check to make sure that the formula is correct. Here are some examples:

  • The Tetrahedral Graph:




  • The vertices have been colored yellow; there are 4 of them. v = 4.

    The edges have been colored blue; there are 6 of them. e = 6.

    The faces have each been colored a different shade of pink; there are 4 of them. f = 4.

    So:

    v - e + f = 4 - 6 + 4 = 2.



  • The Cube Graph:




  • The vertices have been colored yellow; there are 8 of them. v = 8.

    The edges have been colored blue; there are 12 of them. e = 12.

    The faces have each been colored a different shade of pink; there are 6 of them. f = 6.

    So:

    v - e + f = 8 - 12 + 6 = 2.



  • The Dodecahedral Graph:




  • The vertices have been colored yellow; there are 20 of them. v = 20.

    The edges have been colored green; there are 30 of them. e = 30.

    The faces have been colored pink and blue; there are 12 of them. f = 12.

    So: v - e + f = 20 - 30 + 12 = 2.



    These examples verify the formula, and the pictorial representations of the graphs make it very easy to identify and count the numbers of edges, vertices and faces for each graph. However, if we were to try and prove the formula:

    v - e + f = 2

    using only these pictorial representations of the graphs, then we would have to draw out every single planar graph, and verify the formula for each picture that we drew. Since there are a lot of possible planar graphs, this would be an impractical approach. One answer to this is to make abstract definitions. These definitions are useful because they let us prove things more easily, but they are usually harder to understand than the pictorial representations of graphs.



    Abstract Definitions

    The following definitions are from lesson 1:

    Definition A graph G consists of a set of vertices and a set of edges, where each edge joins an unordered pair of vertices. The set of vertices of G is denoted by V(G) and the set of edges is denoted by E(G).

    Definition A loop is an edge that joins a vertex to itself. A multiple edge occurs when there is more than one edge joining a pair of vertices.

    Definition A simple graph is a pair (V(G), E(G)) where V(G) is a non-empty finite set of elements, and E(G) is a finite set of unordered pairs of distinct elements of V(G).

    New for this lesson:

    Definition Two vertices are said to be adjacent if there is an edge joining them. The vertices are said to be incident to the edge. Similarly, two distinct edges are adjacent if they have at least one vertex in common.




    The edges of the following graph are labeled with letters, and the vertices with numbers.



  • Can you think of another way to describe this graph (apart from drawing a different picture) ?

  • Which vertices are adjacent? Which edges are they incident with? Which edges are adjacent?



  • Using Matrices to Represent Graphs

    The ideas of adjacency and incidence can be used to come up with different ways of representing a graph.

    Let's take a pretty abstract description of a graph G:

  • We are given a vertex set V(G) = {v1 , , vn}

  • We are given an edge set E(G) = { e1 , , em}

  • One way to represent this information is to point out when a particular edge meets a particular vertex (i.e. when a particular vertex is incident to a particular edge).

    For example with the graph:


  • Vertex 1 is incident with side 'a.'

  • Vertex 2 is incident with side 'a,' with side 'b,' and with side 'd.'

  • Vertex 3 is incident with side 'b,' and side 'c.'

  • Vertex 4 is incident with side 'c,' and side 'd.'

  • This information could be represented by drawing a grid like:

    Side 'a'Side 'b' Side 'c'Side 'd'
    Vertex 1
    Vertex 2
    Vertex 3
    Vertex 4


    The table is filled in by writing '1' in a box if that vertex is incident with that edge, and writing '0' in a box if that vertex is not incident with that edge. The completed table would look like:

    Side 'a'Side 'b' Side 'c'Side 'd'
    Vertex 110 00
    Vertex 211 01
    Vertex 301 10
    Vertex 400 11


    Getting rid of the vertex and side labels, the table becomes a matrix known as the incidence matrix:

    Incidence Matrix =

    More abstractly:

    Definition Suppose G is a graph with a vertex set V(G) = {v1 , , vn} and an edge set E(G) = {e1 , , en}. We will write vi ~ ej if and only if the ith vertex of G is incident with the jth edge of G. Then the nm matrix B = [ bij ] whose ijth entry, bij, is defined by:



    is called the incidence matrix of the graph G.



  • How would you represent the following graphs using incidence matrices?





  • Is it possible for two different graphs to have the same incidence matrices? Does having the same incidence matrices guarantee that the graphs are the same? You might like to make up some examples and try them out here. You could also try making an incidence matrix and trying to re-construct a graph from the information contained in the matrix.

  • How else could you represent the graph using incidence?



  • The idea of adjacency can also be used to describe a graph using a matrix. Again, let's take a pretty abstract description of a graph G:

  • We are given a vertex set V(G) = {v1 , , vn}

  • We are given an edge set E(G) = { e1 , , em}

  • This information could be represented by pointing out when a particular vertices are joined by edges (i.e. pointing out when vertices are adjacent). Recycling the previous example:


  • Vertex 1 is adjacent to vertex 2.

  • Vertex 2 is adjacent to vertex 1, to vertex 3, and to vertex 4.

  • Vertex 3 is adjacent to vertex 2 and to vertex 4.

  • Vertex 4 is adjacent to vertex 2 and vertex 3.


  • In a similar spirit to the table made to record the incidence information, we could make a table to record the adjacency information:

    Vertex 1Vertex 2 Vertex 3Vertex 4
    Vertex 101 00
    Vertex 210 11
    Vertex 301 01
    Vertex 401 10





  • The adjacency matrix made from this table would look like:


  • Adjacency Matrix =

    Is it possible for two different graphs to have the same adjacency matrix? Conversely, if two graphs have the same adjacency matrix, are they guaranteed to be the same graph? You might like to try making up some examples to test your hypotheses.

  • How could the adjacency matrix be modified to guarantee that two graphs have the same adjacency matrix if and only if they are the same graph? You might like to think about what information a graph contains, and how much of it is recorded in the above definition of the adjacency matrix.

  • What algebraic properties or patterns can you see in the adjacency matrix? Are these patterns just a fluke, caused by the particular graph used in the example, or are they genuine, mathematical patterns? If you think that they are real patterns, why do they arise? For example, notice that all the entries on the main diagonal of the matrix are zero. Will this be the case for every possible graph?

  • More Definitions

    Definition The degree or valency of a vertex of G is the number of edges incident with that vertex.

    For example, the degrees of the vertices of the following graph are:




    Definition If all the vertices of a simple graph have the same degree, and if k is that common degree then the graph is said to be k regular (alternatively, regular of degree k).

    Definition Suppose G is a graph. A subgraph of G is a graph whose vertices all belong to V(G) and whose edges all belong to E(G).

    For example, if we a graph resembling:



    then some of the subgraphs of this graph (each is drawn using a different color) include:






    When are Two Graphs the Same?

    Finally in this lesson, let us address the question of what it means for two graphs to be the same. As you can imagine, there are many different ways of drawing the same graph. For example, both of the following are the cube graph:



    but they don't look all that similar. The question of when graphs are the same has been implicit in some of the thinking opportunities. For example, to decide whether the incident and adjacency matrices are different for different graphs, you have to decide what it means for graphs to be different in the first place, and this can sometimes be very hard to tell from the pictures. For example, believe it or not, the following graph:




    is the cube graph too. In graph theory, two graphs which are really the same are called isomorphic. This means that one pictorial representation of one graph can be re-drawn (preserving all of the vertices and edges) to resemble the other graph. If you attended the summer course Geometry and the Imagination, you might remember "schmooshing" operations. Two graphs are isomorphic if you can schmoosh one into the other. As an example, let's schmoosh this funny looking graph into the cube graph (colors are added to show how the schmooshing goes).



    In abstract terms, isomorphism is defined:

    Definition Two graphs, G1 and G2, are isomorphic if there is a one-to-one correspondence between the vertices of G1 and those of G2 with the property that the number of edges joining any two vertices of G1 is equal to the number of edges joining the corresponding vertices of G2.




  • Is it true that isomorphic graphs have the same incidence matrix? Conversely, is two graphs have the same incidence matrix, then are they isomorphic? You might like to devise some examples, and try the statements out on them.

  • If you think that these statements are true, can you give an argument to support your conclusion?

  • If you think that these statements are not true, can you give an example that contradicts the statements? Can you modify the statements to make them true?

  • The normal definition for the adjacency matrix is as follows:


  • Definition If G is a graph with vertex set V(G) = { v1 , , vn } then the nn matrix

    A = [ aij ] whose ijth entry is the number of edges joining vertex I to vertex j is called the adjacency matrix.

  • Do isomorphic graphs have the same adjacency matrices? Conversely, if two graphs have the same adjacency matrices, are they isomorphic? Again, support you conclusions with arguments, examples and modifications as appropriate.




  • Back to MMS Main Page || Back to Graph Theory Contents Page