In graph theory, a locally linear graph is an undirected graph in which every edge belongs to exactly one triangle. Equivalently, for each vertex of the graph, its neighbors are each adjacent to exactly one other neighbor, so the neighbors can be paired up into an induced matching. Locally linear graphs have also been called locally matched graphs. Their triangles form the hyperedges of triangle-free 3-uniform linear hypergraphs and the blocks of certain partial Steiner triple systems, and the locally linear graphs are exactly the Gaifman graphs of these hypergraphs or partial Steiner systems.
Many constructions for locally linear graphs are known. Examples of locally linear graphs include the triangular cactus graphs, the line graphs of 3-regular triangle-free graphs, and the Cartesian products of smaller locally linear graphs. Certain Kneser graphs, and certain strongly regular graphs, are also locally linear.
The question of how many edges locally linear graphs can have is one of the formulations of the Ruzsa–Szemerédi problem. Although dense graphs can have a number of edges proportional to the square of the number of vertices, locally linear graphs have a smaller number of edges, falling short of the square by at least a small non-constant factor. The densest planar graphs that can be locally linear are also known. The least dense locally linear graphs are the triangular cactus graphs.
The friendship graphs, graphs formed by gluing together a collection of triangles at a single shared vertex, are locally linear. They are the only finite graphs having the stronger property that every pair of vertices (adjacent or not) share exactly one common neighbor. More generally every triangular cactus graph, a graph formed by gluing triangles at shared vertices without forming any additional cycles, is locally linear.
Locally linear graphs may be formed from smaller locally linear graphs by the following operation, a form of the clique-sum operation on graphs.Let
G
H
H(d,3)
d
Some graphs that are not themselves locally linear can be used as a framework to construct larger locally linear graphs. One such construction involves line graphs. For any graph
G
L(G)
G
L(G)
G
G
L(G)
v
G
v
K3,3
A more complicated expansion process applies to planar graphs. Let
G
G
G
G
n
n-2
G
5(n-2)+2
12(n-2)
Certain Kneser graphs, graphs constructed from the intersection patterns of equal-size sets, are locally linear. Kneser graphs are described by two parameters, the size of the sets they represent and the size of the universe from which these sets are drawn. The Kneser graph
KGa,b
\tbinom{a}{b}
b
a
a=3b
b
X
Y
b
X
Y
\tbinom{3b}{b}
\tfrac{1}{2}\tbinom{3b}{b}\tbinom{2b}{b}
b=2
KG6,2
Locally linear graphs can also be constructed from progression-free sets of numbers.Let
p
A
p
A
p
A
p
3p
3p ⋅ |A|
0
p-1
x
0
p-1
a
A
x
x+a
x+2a
(x,x+a,x+a+b)
a
b
c=(a+b)/2
A
(a,c,b)
A
p=3
A=\{\pm1\}
The triangles in a locally linear graph can be equivalently thought of as forming a 3-uniform hypergraph. Such a hypergraph must be linear, meaning that no two of its hyperedges (the triangles) can share more than one vertex. The locally linear graph itself is the Gaifman graph of the hypergraph, the graph of pairs of vertices that belong to a common hyperedge. In this view it makes sense to talk about the girth of the hypergraph. In graph terms, this is the length of the shortest cycle that is not one of the triangles of the graph. An algebraic construction based on polarity graphs (also called Brown graphs) has been used, in this context, to find dense locally linear graphs that have no 4-cycles; their hypergraph girth is five. A polarity graph is defined from a finite projective plane, and a polarity, an incidence-preserving bijection between its points and its lines. The vertices of the polarity graph are points, and an edge connects two points whenever one is polar to a line containing the other. More algebraically, the vertices of the same graph can be represented by homogeneous coordinates: these are triples of values
(x,y,z)
q
q2+q+1
q+1
q2
l(\tfrac12+o(1)r)q3
A graph is regular when all of its vertices have the same degree, the number of incident edges. Every locally linear graph must have even degree at each vertex, because the edges at each vertex can be paired up into triangles. The Cartesian product of two locally linear regular graphs is again locally linear and regular, with degree equal to the sum of the degrees of the factors. Therefore, one can take Cartesian products of locally linear graphs of degree two (triangles) to produce regular locally linear graphs of every even degree.
The
2r
6r-3
r
K3
KG6,2
A strongly regular graph can be characterized by a quadruple of parameters
(n,k,λ,\mu)
n
k
λ
\mu
λ=1
KG6,2
Other locally linear strongly regular graphs include
Other potentially-valid combinations with
λ=1
There are finitely many distance-regular graphs of degree 4 or 6 that are locally linear. Beyond the strongly regular graphs of the same degrees, they also include the line graph of the Petersen graph, the Hamming graph
H(3,3)
See main article: Ruzsa–Szemerédi problem. One formulation of the Ruzsa–Szemerédi problem asks for the maximum number of edges in an
n
o(n2)
\Omega(n2-\varepsilon)
\varepsilon>0
n2/\expO(\sqrt{logn})
o
\Omega
O
Among planar graphs, the maximum number of edges in a locally linear graph with
n
\tfrac{12}{5}(n-2)
n=5k+2
\tfrac{12}{5}(n-2)=12k
k=2,3,...
K2,k
\tfrac{12}{5}(n-2)
Every locally linear graph has the property that it remains connected after any matching is removed from it, because in any path through the graph, each matched edge can be replaced by the other two edges of its triangle. Among the graphs with this property, the least dense are the triangular cactus graphs, which are also the least dense locally linear graphs.
One application of locally linear graphs occurs in the formulation of Greechie diagrams, which are used in quantum logic to help determine whether certain Hilbert space equations can be inferred from each other. In this application, the triangles of locally linear graphs form the blocks of Greechie diagrams with block size three. The Greechie diagrams corresponding to lattices come from the locally linear graphs of hypergraph girth five or more, as constructed for instance from polarity graphs.
A combination of random sampling and a graph removal lemma can be used to find large high-girth 3-uniform hypergraphs within arbitrary 3-uniform linear hypergraphs or partial Steiner triple systems. This method can then be used to prove asymptotically tight lower bounds on the independence number of 3-uniform linear hypergraphs and partial Steiner triple systems.