In one sentence
Draw the objects as vertices and “are related” as edges, and the problem becomes a graph. The simplest theorem of graph theory:
(Each edge joins two vertices and is counted twice: this is “counting in two ways” on a graph.) So the number of vertices of odd degree is always even. Add coloring the edges (know / do not know) and triangles, and many problems of the form “any people…” get an intuitive model.
Predict first
Can each of people have shaken hands with exactly of the others?
No. The sum of the degrees, , is odd, but it must equal twice the number of edges. Set the graph above to vertices and try: the number of odd-degree vertices is always even.
Example: among any 6 people, there are 3 who all know each other or 3 who all do not (the classic Ramsey problem)
Step 1 / 5- The model
People → vertices; two people who know each other → a red edge, who do not → a blue edge. To prove: every two-coloring of the complete graph on vertices has a monochromatic triangle.
Stop 1 · Families of subsets: the intersection graph (Vol. 1)
In a family of sets, “two sets intersect” is a pairwise relation. Draw the sets as vertices, and the handshake lemma can answer existence questions.
Example: are there 7 sets such that each one intersects exactly 3 of the others?
Step 1 / 3- Draw a graph
Each set is a vertex, and two intersecting sets are joined by an edge. The condition becomes: vertices, each of degree .
Stop 2 · Partitions of a set: bipartite graphs and odd cycles (Vol. 1)
Split the vertices into two groups so that every edge goes across: that is a bipartite graph. Whether it can be done depends on whether there is an odd cycle.
Label the groups alternately A, B, A, B… around the cycle. After steps you are back at the start, which should now be B, but it is A. So an odd cycle cannot be split into two groups. Conversely, one can prove that a graph with no odd cycle can always be split into two groups (start from any vertex and group the vertices by the parity of their distance).
Stop 3 · Combinatorial estimates: graphs without triangles (Vol. 6)
One problem, several solutions
A graph on vertices has no triangle. Prove that the number of edges satisfies (Mantel's theorem).
Counting in two ways + Cauchy
For each edge : and have no common neighbor (otherwise there would be a triangle), so . Sum over all edges; each vertex appears once in each of its edges, so . By the Cauchy inequality, . So , that is, .
CostA clear line of thought, using the Cauchy inequality from Vol. 6.
The extremal principle
Take a vertex of largest degree, . The neighbors of are pairwise non-adjacent, so every edge has at least one end among the other vertices, each of degree : .
CostNo inequality needed, but you have to think of taking the vertex of largest degree.
Equality is reached by the complete bipartite graph: two groups of vertices each, all edges between the groups and none inside them. The graph above is the case , with .
Practice
At a party of people, each person shakes hands with exactly of the others. How many handshakes are there in all?
A graph on vertices has no triangle. At most how many edges can it have?
Color every edge of the complete graph red or blue. What is the smallest for which there is a monochromatic triangle however the edges are colored?
The edges of are colored red and blue in any way. What is the least possible number of monochromatic triangles?