Friendship graph
# Friendship graph

In the mathematical field of graph theory, the friendship graph (or Dutch windmill graph or n-fan) $F_n$ is a planar, undirected graph with 2n + 1 vertices and 3n edges.

The friendship graph $F_n$ can be constructed by joining n copies of the cycle graph $C_3$ with a common vertex, which becomes a universal vertex for the graph.

By construction, the friendship graph $F_n$ is isomorphic to the windmill graph Wd(3, n). It is unit distance with girth 3, diameter 2 and radius 1. The graph $F_2$ is isomorphic to the butterfly graph. Friendship graphs are generalized by the triangular cactus graphs.

## Friendship theorem

The friendship theorem of Paul Erdős, Alfréd Rényi, and Vera T. Sós (1966) states that the finite graphs with the property that every two vertices have exactly one neighbor in common are exactly the friendship graphs. Informally, if a group of people has the property that every pair of people has exactly one friend in common, then there must be one person who is a friend to all the others. However, for infinite graphs, there can be many different graphs with the same cardinality that have this property.

A combinatorial proof of the friendship theorem was given by Mertzios and Unger. Another proof was given by Craig Huneke. A formalised proof in Metamath was reported by Alexander van der Vekens in October 2018 on the Metamath mailing list.

## Labeling and colouring

The friendship graph has chromatic number 3 and chromatic index 2n. Its chromatic polynomial can be deduced from the chromatic polynomial of the cycle graph $C_3$ and is equal to

    $(x-2)^{n}(x-1)^{n}x$.

The friendship graph $F_n$ is edge-graceful if and only if n is odd. It is graceful if and only if n ≡ 0 (mod 4) or n ≡ 1 (mod 4).

Every friendship graph is factor-critical.

## Extremal graph theory

According to extremal graph theory, every graph with sufficiently many edges (relative to its number of vertices) must contain a $k$-fan as a subgraph. More specifically, this is true for an $n$-vertex graph if the number of edges is

    $\left\lfloor {\frac {n^{2}}{4}}\right\rfloor +f(k),$

where $f(k)$ is $k^{2}-k$ if $k$ is odd, and $f(k)$ is Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "http://localhost:6011/en.wikipedia.org/v1/":): {\displaystyle k^2-3k/2} if $k$ is even. These bounds generalize Turán's theorem on the number of edges in a triangle-free graph, and they are the best possible bounds for this problem, in that for any smaller number of edges there exist graphs that do not contain a $k$-fan.

