BLUEBIRD MATH CIRCLE�FEBRUARY 2024�
Mark Saul, Ph.D.
“Think deeply of simple things.”
-- Arnold Ross
LINE DRAWINGS AND GRAPH THEORY
�Printing neatly is a chore. Some letters are easy, some are more difficult.
Let’s look at different letters of the alphabet and analyze which are easier and which are more difficult.
THE LETTER I. This has *got* to be the easiest letter. It’s just a stroke: . I
You can start at the top and stroke down, or start at the bottom and stroke up.
THE LETTER I. This has *got* to be the easiest letter. It’s just a stroke: . I
You can start at the top and stroke down, or start at the bottom and stroke up.
You could also start in the middle, but then you’re making things hard for yourself. When you get to the top or bottom point, you must lift your pencil off the paper. If you don’t watch out, your I will look like this:
So we want to start the letter at the top or at the bottom. Note that we are looking at a capital I, for which we don’t need a dot (Small i needs a dot on top.) Also note that we are writing the letter in a certain way. Some people write it like this: I, with extra lines at the top and bottom. That’s too fancy.
Challenge: Can you draw that kind of I without lifting your pencil, or doubling back?
?
Your turn! Which letters or numerals are like I, in that you can start in one place, trace it out, and end without doubling back or lifting your pencil? (Please pay attention to how the letters are written here, and don’t think of ‘fancy’ letters.)
N M Z A S O P Q (notice the shape of the letter we are using!) R D B C.
The Spanish artist Pablo Picasso invented a way to use lines very expressively. Here is Picasso’s ‘line drawing’ of an elephant. See how it is like the letter I? You can start at the elephant’s mouth (the red x) and trace around to its eye(the other red x). Or you can go the other way, just as you can in drawing our letter I.
Or is this a mouse? You can decide.
https://www.reddit.com/r/DeviantArt/comments/np80ek/my_new_painting_please_dont_bash/?onetap_auto=true
Maybe you have your own idea for a line drawing like this. Can you make the letter I into something more expressive?
Just for inspiration, on the right is another line drawing. Make sure you can trace the single line from beginning to end.
https://www.vecteezy.com/free-vector/face-contour
How about this one? Can you trace the single line that makes up the dove? (Don’t worry about the dove’s eye, which is a single point.)
Here are some drawings made of two or three lines. Trace each line so you can understand how the drawing was made. How many lines make up each image?
(See the butterfly?)
https://www.istockphoto.com/vector/line-art-woman-gm1399495320-453346852
https://www.etsy.com/listing/1218231665/butterfly-line-art-minimalist-digital
Line drawings like the numeral 4.
People make the numeral 4 in different ways:
Here we will write it this way: 4.
Line drawings like the numeral 4.
People make the numeral 4 in different ways:
Here we will write it this way: 4.
Line drawings like the numeral 4.
People make the numeral 4 in different ways:
Here we will write it this way: 4.
If we write 4 this way, it may not look to you like the letter I or the elephant drawing. But you can still trace it without lifting your pencil off the paper.
Line drawings like the numeral 4.
People make the numeral 4 in different ways:
Here we will write it this way: 4.
If we write 4 this way, it may not look to you like the letter I or the elephant drawing. But you can still trace it without lifting your pencil off the paper.
Make sure you can do this.
The (slight) difference here is that the line that made the letter I now crosses over itself. But we can still think of it as a single line.
If we write 4 this way, it may not look to you like the letter I or the elephant drawing. But you can still trace it without lifting your pencil off the paper.
The (slight) difference here is that the line that made the letter I now crosses over itself. But we can still think of it as a single line.
Sometimes artists do this in a line drawing. Make sure you can trace these line drawings as a single line, perhaps intersecting itself:
(Penguin) (Angry Bird) (Yes, this face is a single line!) (Hummingbird)
https://www.vectorstock.com/royalty-free-vector/hand-drawing-single-one-line-of-abstract-face-vector-46031409
https://www.pablopicasso.org/drawings.jsp
(If you look closely, you will see that the line forming the penguin’s bill or the hummingbird’s bill does not trace over itself. We are not allowing a line to trace over itself—to go
back along a line just drawn.)
https://www.pablopicasso.org/drawings.jsp
https://www.pablopicasso.org/drawings.jsp
These three figures are all formed from a single line! Except that their eyes are separate dots. Forget about the eyes, and have fun tracing the single line forming the three figures.
https://www.vecteezy.com/vector-art/20120754-one-single-line-drawing-of-three-dancing-people-picasso-style
Line drawings like the letter P
So far, it’s been easy to tell where a line begins or ends. We just look for a ‘loose end’, and start there. But sometimes the end of a line is ‘tucked in’ against another line
https://www.pablopicasso.org/drawings.jsp
Here is Picasso’s drawing of his pet dog, a Dachshund:
Try to trace it as a single line.
One end of the line is the dog’s front paw.
But if you trace the line, you will find that it ends against the dog’s ear:
�
(Of course we could also trace it ‘backwards’, from the ear to the paw.)
How can we tell where a line begins or ends? That’s an important question.
Let’s look back at the angry bird:
It consists of a single line, whose two ends are the bird’s feet. As we trace the line, we come to two intersections of the line with itself, marked with red crosses above.
https://pdfposters.com/product/picasso-sparrow-line-art-poster/
If we imagine ourselves standing at one of the points marked with a red X, we see the line ‘going into’ the point, then ‘coming out of’ the point. So there are four ways to leave the point along the line. This means that the line has crossed over itself.
https://pdfposters.com/product/picasso-sparrow-line-art-poster/
But when we look at the dachshund (above), we see something different. The line has a dead end just at the dog’s ear:
We can tell it’s a dead end because if we imagine ourselves standing at the point where it ends, we see only three ways (and not four) of leaving the point along a line.
Do you see the ‘dead end’ in this flamingo? Or the bull?
https://www.etsy.com/listing/676571895/picasso-bull-head-drawing-picasso-bull
Mathematics
We have secretly been working with a very important mathematical study, called “graph theory”.
A graph in this sense is a set of points and lines. Any set:
(Just to be clear!) In looking at the line drawings, we had not considered points at all. But we can put points in where the lines begin, end, or cross:
Here, we consider the “Dachshund graph” as consisting of three points and four (very curvy) lines connecting them. There are other ways to “put in” points to think of this same drawing as a graph.
We can even have a ‘disconnected’ set of points:
That is, we can consider the eleven points and seven line segments forming the word ‘HI!’ above as a single graph, even though there’s no connection between parts of the graph.
But for the rest of today, we will limit ourselves to ‘connected’ graphs.
The lines in a graph are called edges.
The points in a graph are called vertices.
(That’s a Latin word, so the singular—one of them—is a vertex.)
We have been looking at Picasso’s line drawings as graphs, with the vertices being the intersections (or self-intersections) of the lines, or the ‘loose ends’ of the lines.
It can be very important to know if we can draw a graph as a single line, without lifting our pencil off the paper. Such a path through a graph is called a “Euler path”. (Euler was a Swiss German mathematician, and we pronounce his name like ‘OY-ler’.)
So when is there an Euler path in a graph?
We have just discovered that if there are two ‘loose ends’, then we can draw a Euler path between them:
https://www.reddit.com/r/DeviantArt/comments/np80ek/my_new_painting_please_dont_bash/?onetap_auto=true
And if the path intersects itself, it does so in a vertex with four edges:
But if a vertex has three edges, it is the beginning or ending of a line:
But if a vertex has three edges, it is the beginning or ending of a line:
So one way to find an Euler path is to look at vertices which have one or three edges emerging from them.
But we can look further.
The graph on the right has five vertices (and nine edges).
But we can look further.
The graph on the right has five vertices (and nine edges).
The three brown vertices are even vertices. Each has four edges emerging from it. So these are places where a single line crosses.
But we can look further.
The graph on the right has five vertices (and nine edges).
The three brown vertices are even vertices. Each has four edges emerging from it. So these are places where a single line crosses.
The green vertex has a single edge emerging from it. So it must be the start (or end) of a line.
But we can look further.
The graph on the right has five vertices (and nine edges).
The three brown vertices are even vertices. Each has four edges emerging from it. So these are places where a single line crosses.
The green vertex has a single edge emerging from it. So it must be the start (or end) of a line.
The blue vertex has five edges emerging from it. Four of them must be places where the line crosses itself, and the fifth must be the end (or beginning) of a line
So to trace an Euler path on this graph, we must start with the the green vertex, and end with the blue vertex (or vice-versa). Try it!
The three brown vertices are even vertices. Each has four edges emerging from it. So these are places where a single line crosses.
The green vertex has a single edge emerging from it. So it must be the start (or end) of a line.
The blue vertex has five edges emerging from it. Four of them must be places where the line crosses itself, and the fifth must be the end (or beginning) of a line
Your turn!
Try tracing Euler paths on the following graphs. Which of them do not have an Euler paths?
Definitions:
An even vertex of a graph is a vertex with evenly many edges emerging from it.
An odd vertex of a graph is a vertex with oddly many edges emerging from it.
(A ‘loose end’ has just one edge emerging from it, so it is an odd vertex.)
Definitions:
An even vertex of a graph is a vertex with evenly many edges emerging from it.
An odd vertex of a graph is a vertex with oddly many edges emerging from it.
(A ‘loose end’ has just one edge emerging from it, so it is an odd vertex.)
What we have shown is that if a graph has an Euler path, we can find it by locating the odd vertices, which must be the beginning or ending of the path.
Trick questions
We snuck two graphs in above, which don’t have Euler paths. They are:
Why don’t they have Euler paths?
and
Why don’t these graphs
have Euler paths?
Well, if you look at the vertices in the A, you will find that they are all odd except for the one at the top of the letter. (A ‘loose end’ counts as an odd vertex, because there is only one edge emerging from it.)
Why don’t these graphs
have Euler paths?
Well, if you look at the vertices in the A, you will find that they are all odd except for the one at the top of the letter. (A ‘loose end’ counts as an odd vertex, because there is only one edge emerging from it.)
Each odd vertex is the beginning (or end) of a path through the graph—not necessarily an Euler path. That is, we can think of the graph’s edges as forming paths (lines) through the graph. That is how we’ve been looking at the line drawings.
Why don’t these graphs
have Euler paths?
Well, if you look at the vertices in the A, you will find that they are all odd except for the one at the top of the letter. (A ‘loose end’ counts as an odd vertex, because there is only one edge emerging from it.)
Each odd vertex is the beginning (or end) of a path through the graph—not necessarily an Euler path. That is, we can think of the graph’s edges as forming paths (lines) through the graph. That is how we’ve been looking at the line drawings.
If there are two odd vertices in the graph, then these must be the beginning and end of a single path, and we can try to find an Euler path using this information.
Why don’t these graphs
have Euler paths?
Well, if you look at the vertices in the A, you will find that they are all odd except for the one at the top of the letter. (A ‘loose end’ counts as an odd vertex, because there is only one edge emerging from it.)
Each odd vertex is the beginning (or end) of a path through the graph—not necessarily an Euler path. That is, we can think of the graph’s edges as forming paths (lines) through the graph. That is how we’ve been looking at the line drawings.
If there are two odd vertices in the graph, then these must be the beginning and end of a single path, and we can try to find an Euler path using this information.
But in the graphs above, there are four odd vertices. Each pair of these is the beginning and end of a path, so on one path can go through all the vertices.
Theorem: A necessary condition that a graph have a Euler path through it is that it not have more than two odd vertices.
Theorem: A necessary condition that a graph have a Euler path through it is that it not have more than two odd vertices.
If you look back, that is the case for all the line drawings that consisted of a single line: they all have either 0 or 2 odd vertices.
Theorem: A necessary condition that a graph have a Euler path through it is that it not have more than two odd vertices.
If you look back, that is the case for all the line drawings that consisted of a single line: they all have either 0 or 2 odd vertices.
But what if the graph contains only ONE odd vertex?
What if the graph contains only ONE odd vertex?
Try to draw such a graph. The simplest would be a graph with a single ‘triple’ vertex (from which three edges emerge). Try it.
WHatif the graph contains only ONE odd vertex?
Try to draw such a graph. The simplest would be a graph with a single ‘triple’ vertex (from which three edges emerge). Try it.
Don’t try too hard! It’s in fact not possible. It’s like having a rope that has only one end, or listening to the sound of one hand clapping.
WHatif the graph contains only ONE odd vertex?
Try to draw such a graph. The simplest would be a graph with a single ‘triple’ vertex (from which three edges emerge). Try it.
Don’t try too hard! It’s in fact not possible. It’s like having a rope that has only one end, or listening to the sound of one hand clapping.
For the same reason, we can’t have three odd vertices. Two of them could be the start and finish of a line, but the third would be a single-ended rope.
But maybe a rope can form a loop. Maybe you can have a single Euler path that begins and ends with an odd vertex.
But maybe a rope can form a loop. Maybe you can have a single Euler path that begins and ends with an odd vertex.
It turns out that this cannot happen—as you may have noticed when you tried to draw a graph with just one triple vertex.
But maybe a rope can form a loop. Maybe you can have a single Euler path that begins and ends with an odd vertex.
But maybe a rope can form a loop. Maybe you can have a single Euler path that begins and ends with an odd vertex.
It turns out that this cannot happen—as you may have noticed when you tried to draw a graph with just one triple vertex.
But maybe a rope can form a loop. Maybe you can have a single Euler path that begins and ends with an odd vertex.
It turns out that this cannot happen—as you may have noticed when you tried to draw a graph with just one triple vertex.
In fact we can prove this, in what is called the handshake theorem: The number of odd vertices in a graph must be even.
Handshake theorem: The number of odd vertices in a graph must be even.
This theorem is not hard to prove. But we need one more concept: the notion of the degree of a vertex.
Handshake theorem: The number of odd vertices in a graph must be even.
This theorem is not hard to prove. But we need one more concept: the notion of the degree of a vertex.
We’ve actually been talking about this concept. The degree of a vertex is simply the number of edges emerging from it.
Example of a vertex of degree ONE.
(When we count the degree of a vertex, we are looking at the vertex ‘locally’: we are only looking at parts of the graph very near the vertex.)
Examples of vertices of degree TWO:
Examples of vertices of degree 3:
Examples of vertices of degree 4:
Example of vertex of degree 5:
https://www.tornado-studios.com/stock-3d-models/daddy-long-legs-relaxed-model
What is a good nickname for a vertex of degree EIGHT?
BUT…
What about a loop? What about an edge that connects a vertex to itself?
Here is Picasso’s Angry Bird again, displayed as a graph. The vertices are marked with red dots:
(There are other ways to represent the bird as a graph, but this one will do for our proof here.)
BUT…
What about a loop? What about an edge that connects a vertex to itself?
The bird’s wing is a loop, as is her eye. The vertex below her wing has degree four, as does the vertex above her beak. It doesn’t matter that an edge emerging from such a vertex comes back and ends at the same vertex (forming a loop). The vertex still counts as degree four.
Recall that there are only two vertices with odd degree (two odd vertices) in this graph. They are at the bird’s feet.
So with this observation about ‘loops’, we can state very simply that each edge of the graph has two endpoints (which may coincide in the case of a loop).
So with this observation about ‘loops’, we can state very simply that each edge of the graph has two endpoints (which may coincide in the case of a loop).
And now we can state the ‘Handshake Theorem’:
HANDSHAKE THEOREM: The sum of the degrees of all the vertices in a (connected) graph is twice the number of edges.
HANDSHAKE THEOREM: The sum of the degrees of all the vertices in a (connected) graph is twice the number of edges.
Proof: Now it’s easy. Each edge ends at exactly two vertices of the graph. So the number of edges, multiplied by two, will be the sum of the degrees of all the vertices.
HANDSHAKE THEOREM: The sum of the degrees of all the vertices in a (connected) graph is twice the number of edges.
Let’s verify this theorem with our old (if cantankerous) friend, the Angry Bird:
Vertex A Degree 1
Vertex B Degree 1
Vertex C Degree 4
Vertex D Degree 4
Vertex E Degree 4
Total of degrees is 14.
So there should be seven edges. And there are:
A to C
B to C
C to D
D to D (a loop)
D to E
E to E (another loop)
E to C
See how it works?
Note: You may feel, for some reason, that there should be other vertices in the graph. Try adding them! You’ll find that the theorem remains true.
You may feel, for some reason, that there should be other vertices in the graph. Try adding them! You’ll find that the theorem remains true.
For example, suppose you want to put a new vertex in for the bird’s tail, here labeled F:
Well, the new vertex has degree 2, so it adds 2 to the sum of the degrees, making it 16. But you’ve also replaced the edge from D to E with two edges, D to F and F to E. So the number of edges is increased by one. It is now 8. And 16 is still twice 8. The theorem remains true.
Exercises
Verify this theorem for yourself with the following graphs (that we’ve seen before):
For the next three graphs, put vertices wherever you think they belong. Then verify the theorem:
https://www.pablopicasso.org/drawings.jsp
https://www.etsy.com/listing/676571895/picasso-bull-head-drawing-picasso-bull
Corollary: The number of vertices of odd degree in a (connected) graph must be even.
Why is this true? Well, we know that the sum of the degrees of all the vertices of a (connected) graph is twice the number of edges. Hence this sum is even.
But two of these degree numbers could be odd, and the sum of all of them would be even.
Corollary: The number of vertices of odd degree in a (connected) graph must be even.
Why is this true? Well, we know that the sum of the degrees of all the vertices of a (connected) graph is twice we know that the sum of the degrees of all the vertices of a (connected) graph is twice the number of edges. Hence this sum is even. the number of edges. Hence this sum is even.
But two of these degree numbers could be odd, and the sum of all of them would be even.
Could three of these degree numbers be odd? Well, all the sum of all the even vertices is even, and then the sum of the three odd vertices would be odd, so the entire sum would be odd.
In general, if a bunch of number add up to an even number, then there must be evenly many odd numbers among them.
Corollary: The number of vertices of odd degree in a (connected) graph must be even.
Why is this true? Well, we know that the sum of the degrees of all the vertices of a (connected) graph is twice the number of edges. Hence this sum is even.
But why is this called the “Handshake Theorem”? The answer lies in one application of graph theory, the theory of social networks.
Suppose there are, say, nine people in a room. Each pair of them shakes hands. How many handshakes will happen?
We can draw a graph in which each person is represented by a vertex, and each handshake is represented by an edge.
How many edges will there be? Well, each person shakes hands with 8 others (no one shakes hands with themselves!). So each vertex will have degree 8, and the sum of the degrees is 9x8 = 72. The number of edges is thus half that, or 36.
Suppose there are, say, nine people in a room. Each pair of them shakes hands. How many handshakes will happen?
Suppose there are, say, nine people in a room. Each pair of them shakes hands exactly once. How many handshakes will happen? (A person does NOT shake hands with himself!)
We can draw a graph in which each person is represented by a vertex, and each handshake is represented by an edge.
How many edges will there be? Well, each person shakes hands with 8 others (no one shakes hands with themselves!). So each vertex will have degree 8, and the sum of the degrees is 9x8 = 72. The number of edges is thus half that, or 36.
(The way sociologists use this tool is not with handshakes, but with relationships within a class, a school, a company, an industry, etc.)
That’s an easy problem. But here are some harder ones. In these problems, no handshake between two people occurs twice, and no one shakes hands with themselves:
2. In the same room with nine people, is it possible for each person to have exactly three friends? Four friends? We assume that if A is B’s friend, then B is also A’s friend.
3. A sports tournament has 12 teams, and each team plays against every other team exactly once. How many total matches were played?
(In these problems, no handshake between two people occurs twice, and no one shakes hands with themselves.)
4. There are three people in a room, and several handshakes occur. Can it happen that each person shakes hands with a different number of people?
5. Same problem for four people in a room.
6. A sports tournament has 12 teams, and each team plays against every other team exactly once. How many total matches were played?
Polyhedra are three dimensional figures made up of polygons stuck together at their edges. A common polyhedron is a cube:
6. A curious ant dreams of walking around the cube, walking along each edge once, not crossing the same edge twice, and coming back to where she started. Can her dream come true?
(Solution)
We can turn the edges of a polyhedrom (like a cube) into a graph.
We make believe one face (say the bottom square in the cube to the left) is missing. Then we stretch the other edges and vertices out to lay flat.
We can turn the edges of a polyhedrom (like a cube) into a graph.
We make believe one face (say the bottom square in the cube to the left) is missing. Then we stretch the other edges and vertices out to lay flat.
And now we can see that the graph formed by the edges of the cube has EIGHT vertices of degree 3. Each pair is the beginning or end of a line segment, so our ant’s dream cannot come true.
BLUEBIRD MATH CIRCLE FEBRUARY 2024�
Mark Saul, Ph.D.
“Think deeply of simple things.”
-- Arnold Ross
THANK YOU FOR YOUR KIND ATTENTION
In these slides: �1) Boys and girls �2) Stand up, sit down�3) Cryptarhythms�4) Binary counting �5) Nim�6) Topology