Euler, the father of graph theory, developed a formula, now named after him. It relates the number of vertices, edges, and faces in a graph. Let v be the number of vertices, e the number of edges, and f the number of faces. Here is his formula, as he derived it in 1750. v - e + f = 1 Note that the graph must be connected for this to work. We could have 20 vertices in the plane, all disconnected, and 20 - 0 + 0 = 20, not 1. But if there is just one vertex, (and that is indeed a connected graph), then the formula is true. The proof is easy, and beautiful. Easy does not mean obvious. That's why it took the genius of Euler to discover it. Bye easy, I mean it's clear once it is explained. That combination of easy and beautiful is captured in the word elegant. Mathematicians use the word elegant to describe a proof that is particularly lovely (subjectively speaking), and this one is. Let G be the smallest graph, as measured by vertices + edges, for which this formula fails - if there is such a thing. If a vertex x has degree 1, a dangling vertex, remove it and its edge. The formula was true in the smaller graph, so, with one more edge and vertex, it's still true in G. Let x have degree 2. It has two edges coming into it. Remove x and join the two edges together, turning two edges into 1. The formula was true before, and, with one more edge and vertex, it's still true. Assume there is a cycle, a path of points and edges that returns to itself, anywhere in G. Remove one of these edges. This does not disconnect the graph. This either combines two faces, the faces on either side of the edge, or it exposes the inside face to the outside. There is one less face and one less edge. The formula is preserved. At this point the graph is a tree. There are no cycles. There are always dangling edges, and we can remove them, one by one, until we get back to a single vertex in the plane, where the formula is true. That completes the proof. The formula is sometimes adjusted to include the outside face. This is the face that is the rest of the plane, stretching out to infinity, or the rest of the sphere. At the outset there is one vertex and one face, and v - e + f = 2. It holds for this minimal graph, and all graphs thereafter. Let d be the average degree of all the vertices. In other words, add up all their degrees and divide by v. It's a measure of how heavily laden the vertices are. Note that d*v is twice the number of edges, because each edge is counted by a vertex on either side. d*v = 2e Assume the graph is fully triangulated. In other words, each face is a triangle. Thus d*v is three times the number of faces, since each face is counted three times over, by the three vertices that define it. d*v = 3f Multiply Euler's formula by 6, and substitute. 6v - 6e + 6f = 12 6v - 3dv + 2dv = 12 6v - dv = 12 d = 6 - 12/v The smallest graph that is fully triangulated takes the form of a tetrahedron on the sphere. It looks like a pyramid with a triangular base. It has 4 vertices, 6 edges, and 4 faces. Yes, 4 - 6 + 4 = 2. The average degree is 3; in fact the degree of every vertex is 3. Check this against the above formula. Remember that v = 4. (6 - 12/4) = 3, and the average degree is 3, as it should be. When the graph is large, and v is large, d approaches 6. It never reaches 6 however. 6 is the limit. The average is always a tad under 6, and there is always a vertex somewhere whose degree is less than 6. We can't have a graph whose points all have degree 8 or 9. That is impossible. There is a way too look at this that resembles bookkeeping. Start again with 6v - dv = 12. Step through the vertices one by one. For each one, add in 6 minus its degree. That will give us 6v when we're done, six times the number of vertices, and it will also give us minus dv, average degree times the number of vertices. The sum of 6 - d[i], over all the vertices v[i], is 12. If one vertex has a lower degree, another must have a higher degree to make up for it. If d[2] is only 4, then there is perhaps d[6] with degree 8, or maybe d[9] and d[11] with degree 7. The books have to balance. In fact the books balance with a surplus of 12, precisely 12. Revisit our tetrahedron. Each vertex has degree 3, and 6-3 = 3, so each vertex contributes 3 to the good. There are four of them, so that's 4 times 3, or 12. A more interesting example is the graph that results from a map that looks like a dodecahedron. This map has 12 regions on the sphere, and each region is a pentagon. Thus each region touches 5 others. Turn this into a graph, and find 12 points on the sphere, each point with degree 5, each point connected to 5 others. Put one point at the south pole, 5 points around at 20 degrees south latitude, 5 points around at 20 degrees north latitude (shifted from the points below), and a point at the north pole. Draw in all the edges, and G is fully triangulated. Each vertex has degree 5, and 6 - 5 = 1, so each vertex contributes 1 to the good. There are 12 of them, so the total is 12, as it should be. If there was, in this graph, a vertex of degree 6, we find 6 - 6 = 0, and that doesn't change anything. If there was a vertex of degree 7, we would need another vertex of degree 5 somewhere to compensate. The books have to balance. Let the "curvature" of a vertex be 6 minus its degree. It is called curvature because a positive curvature causes the graph, (or the corresponding map), to curl up around the sphere. If every vertex has degree 5, (curvature = 1), then the graph curves upward at each vertex, and wraps very nicely around the sphere. Zero curvature is called flat. It is called flat for a simple geometric reason. Cover the entire plane with hexagons. This is a perfect tiling, like you might see on a bathroom floor. Each hexagon is surrounded by 6 more hexagons, and the pattern continues forever. Turn this into a graph and each hexagon becomes a point, connected to 6 other points. Each vertex has degree 6, and curvature 0. The graph is everywhere flat, and covers the entire flat plane. It does not curl up around the sphere. Of course this is an infinite graph, and our formulas don't apply. They were developed for finite graphs. In a finite graph, there has to be some positive curvature somewhere, and in fact, there has to be more positive curvature than negative curvature, more by a surplus of 12. If you want a geometric interpretation of negative curvature, think of a pringles potato chip. It doesn't curve up like part of a sphere, it wrinkles up and down. It can't even lie flat in the plane; there is too much material. We will, during the course of the proof, measure curvature in other ways. We will, in particular, look at the neighborhood around each vertex. What kind of curvature does a vertex and its neighborhood present? Some of these curvatures have to be positive. In fact, they have to add up to 12. Here is the formula for curvature that wins the day. For a vertex x of degree 5, add +1, as we should. Imagine counting each of its edges as 1/5, and there are 5 of them, so 5 times 1/5 is 1. That is certainly not surprising. But in addition, count the incident edges from neighboring vertices of degree 7 or higher. Remember that a vertex of degree 6 has curvature 0 and doesn't count for anything. If an adjacent vertex has degree 5, then its edges will be counted when its turn comes. We consider, after all, each vertex of degree 5 in turn. If the vertex x, of degree 5, is connected to a vertex y, of degree 7, then y contributes a curvature of -1 overall, and -1/7 for the edge that points into x. Our neighborhood curvature is, so far, 1 - 1/7, or 6/7. This edge out of y won't be counted again; it is only counted here, once, as we consider x. We must be careful not to double count. We must keep the books. If y has degree 8, its curvature overall is -2, and the curvature for the edge from y into x is ¼. If there are two vertices of degree 8 incident to x, then we've lost ½, and our net curvature is only ½. But there's more we can do. If those two vertices of degree 8 touch each other, as we walk around x, then we can count the edges in the ring around x. Count them only as half however, since there might be another vertex of degree 5 on the other side, doing the same thing. Put this all together and we are losing ¼ + ¼ + ½*(¼+¼). x contributes +1, but because of its neighbors, it has lost ¾. Its net curvature is only +¼, and we still have three more neighbors to consider. If x has 9 9 in sequence, or even 9 6 9 or 9 6 6 9, then we lose ⅓, and ⅓, and two times half of ⅓, which leaves a net gain of 0. We can't have a lot of higher degree vertices adjacent to x, if x is to make progress. Sometimes we are able to show there is no vertex of degree 5 on the other side - on the ring around the ring around x. When we can prove this, then we can count the transverse edges of the neighboring vertices in full. We don't have to count them as half. This comes in handy at times. for example, suppose x, our vertex of degree 5, connects to y and z, forming a triangle, and y and z have degree 8. On the other side of y and z is another vertex, but perhaps we know, by some means, that its degree is not 5. Now we can count the edges from y into z, and from z into y, fully, and not by half. There is then an edge from y into x, from z into x, from y into z, and from z into y, and each of these contributes -¼. Together they contribute -1, and cancel out the curvature of x. x does not contribute positively to G. Some vertex of degree 5 has to present a positive curvature, including the neighborhood around it, but it can't be x with y and z so attached.