Graphs with no 4-cycle
Statement
A graph on vertices contains no cycle of length .
- Prove that , where is the degree of .
- Deduce that a graph on vertices with no -cycle has at most edges, and give an example with edges.
Hint
Count pairs of vertices together with a common neighbour . Two vertices can have at most one common neighbour.
Show solutionHide solution
Solution
1. Count the pairs where are both neighbours of . For a fixed there are pairs of neighbours, so the total is .
Fix a pair . If it had two distinct common neighbours , then would be a -cycle. So each pair occurs for at most one , and the total is at most .
2. Let and suppose there are edges. The function is convex, so by Jensen's inequality
contradicting part 1. So .
Example with edges. Take two triangles sharing one vertex (a "bowtie"): triangles and . Every cycle lies inside one of the two triangles, because is the only vertex joining them. So there is no -cycle.
Remark. The same method gives, for large , that a -free graph has at most about edges.
Lesson. Double count (vertex, pair of neighbours); forbidden configurations bound the count from above and convexity bounds it from below.