
In
graph theory
In mathematics, graph theory is the study of '' graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of '' vertices'' (also called ''nodes'' or ''points'') which are conn ...
, a locally linear graph is an
undirected graph
In discrete mathematics, and more specifically in graph theory, a graph is a structure amounting to a set of objects in which some pairs of the objects are in some sense "related". The objects correspond to mathematical abstractions called '' v ...
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 In graph theory, an induced matching or strong matching is a subset of the edges of an undirected graph that do not share any vertices (it is a matching) and includes every edge connecting any two vertices in the subset (it is an induced subgrap ...
. Locally linear graphs have also been called locally matched graphs.
Many constructions for locally linear graphs are known. Examples of locally linear graphs include the
triangular cactus graphs, the
line graph
In the mathematical discipline of graph theory, the line graph of an undirected graph is another graph that represents the adjacencies between edges of . is constructed in the following way: for each edge in , make a vertex in ; for every ...
s of 3-regular
triangle-free graph
In the mathematical area of graph theory, a triangle-free graph is an undirected graph in which no three vertices form a triangle of edges. Triangle-free graphs may be equivalently defined as graphs with clique number ≤ 2, graphs with ...
s, and the
Cartesian products of smaller locally linear graphs. Certain
Kneser graphs, and certain
strongly regular graph
In graph theory, a strongly regular graph (SRG) is defined as follows. Let be a regular graph with vertices and degree . is said to be strongly regular if there are also integers and such that:
* Every two adjacent vertices have comm ...
s, 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 graph
In graph theory, a planar graph is a graph that can be embedded in the plane, i.e., it can be drawn on the plane in such a way that its edges intersect only at their endpoints. In other words, it can be drawn in such a way that no edges cro ...
s that can be locally linear are also known. The least dense locally linear graphs are the triangular cactus graphs.
Constructions
Gluing and products

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
In graph theory, a branch of mathematics, a clique-sum is a way of combining two graphs by gluing them together at a clique, analogous to the connected sum operation in topology. If two graphs ''G'' and ''H'' each contain cliques of equal size, th ...
operation on graphs.
Let
and
be any two locally linear graphs, select a triangle from each of them, and glue the two graphs by merging together corresponding pairs of vertices in the two selected triangles. Then the resulting graph remains locally linear.
The
Cartesian product
In mathematics, specifically set theory, the Cartesian product of two sets ''A'' and ''B'', denoted ''A''×''B'', is the set of all ordered pairs where ''a'' is in ''A'' and ''b'' is in ''B''. In terms of set-builder notation, that is
: A\ ...
of any two locally linear graphs remains locally linear, because any triangles in the product come from triangles in one or the other factors. For instance, the nine-vertex
Paley graph
In mathematics, Paley graphs are dense undirected graphs constructed from the members of a suitable finite field by connecting pairs of elements that differ by a quadratic residue. The Paley graphs form an infinite family of conference graphs, ...
(the graph of the
3-3 duoprism) is the Cartesian product of two triangles. The
Hamming graph
Hamming graphs are a special class of graphs named after Richard Hamming and used in several branches of mathematics ( graph theory) and computer science. Let be a set of elements and a positive integer. The Hamming graph has vertex ...
is a Cartesian product of
triangles, and again is locally linear.
From smaller graphs
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 graph
In the mathematical discipline of graph theory, the line graph of an undirected graph is another graph that represents the adjacencies between edges of . is constructed in the following way: for each edge in , make a vertex in ; for every ...
s. For any graph
, the line graph
is a graph that has a vertex for every edge of
. Two vertices in
are adjacent when the two edges that they represent in
have a common endpoint. If
is a
3-regular triangle-free graph
In the mathematical area of graph theory, a triangle-free graph is an undirected graph in which no three vertices form a triangle of edges. Triangle-free graphs may be equivalently defined as graphs with clique number ≤ 2, graphs with ...
, then its line graph
is 4-regular and locally linear. It has a triangle for every vertex
of
, with the vertices of the triangle corresponding to the three edges incident to
. Every 4-regular locally linear graph can be constructed in this way. For instance, the graph of the
cuboctahedron
A cuboctahedron is a polyhedron with 8 triangular faces and 6 square faces. A cuboctahedron has 12 identical vertices, with 2 triangles and 2 squares meeting at each, and 24 identical edges, each separating a triangle from a square. As such, it ...
is the line graph of a cube, so it is locally linear. The locally linear nine-vertex Paley graph, constructed above as a Cartesian product, may also be constructed in a different way as the line graph of the
utility graph
As a topic of economics, utility is used to model worth or value. Its usage has evolved significantly over time. The term was introduced initially as a measure of pleasure or happiness as part of the theory of utilitarianism by moral philosophe ...
. The line graph of the
Petersen graph
In the mathematics, mathematical field of graph theory, the Petersen graph is an undirected graph with 10 vertex (graph theory), vertices and 15 edge (graph theory), edges. It is a small graph that serves as a useful example and counterexample for ...
is also locally linear by this construction. It has a property analogous to the
cages: it is the smallest possible graph in which the largest
clique
A clique ( AusE, CanE, or ), in the social sciences, is a group of individuals who interact with one another and share similar interests. Interacting with cliques is part of normative social development regardless of gender, ethnicity, or popula ...
has three vertices, each vertex is in exactly two edge-disjoint cliques, and the shortest cycle with edges from distinct cliques has length five.

A more complicated expansion process applies to
planar graph
In graph theory, a planar graph is a graph that can be embedded in the plane, i.e., it can be drawn on the plane in such a way that its edges intersect only at their endpoints. In other words, it can be drawn in such a way that no edges cro ...
s. Let
be a planar graph embedded in the plane in such a way that every face is a quadrilateral, such as the graph of a cube. Gluing a
square antiprism
In geometry, the square antiprism is the second in an infinite family of antiprisms formed by an even-numbered sequence of triangle sides closed by two polygon caps. It is also known as an ''anticube''.
If all its faces are regular, it is a se ...
onto each face of
, and then deleting the original edges of
, produces a new locally linear planar graph. The numbers of edges and vertices of the result can be calculated from
Euler's polyhedral formula: if
has
vertices, it has exactly
faces, and the result of replacing the faces of
by antiprisms has
vertices and
edges. For instance, the cuboctahedron can again be produced in this way, from the two faces (the interior and exterior) of a 4-cycle.
The removed 4-cycle of this construction can be seen on the cuboctahedron as a cycle of four diagonals of its square faces, bisecting the polyhedron.
Algebraic constructions
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
has
vertices (in the standard notation for
binomial coefficient
In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers and is written \tbinom. It is the coefficient of the t ...
s), representing the
-element subsets of an
-element set. In this graph, two vertices are adjacent when the corresponding subsets are
disjoint sets, having no elements in common. In the special case when
, the resulting graph is locally linear, because for each two disjoint
-element subsets
and
there is exactly one other
-element subset disjoint from both of them, consisting of all the elements that are neither in
nor in
. The resulting locally linear graph has
vertices and
edges. For instance, for
the Kneser graph
is locally linear with 15 vertices and 45 edges.
Locally linear graphs can also be constructed from progression-free sets of numbers.
Let
be a prime number, and let
be a subset of the numbers modulo
such that no three members of
form an
arithmetic progression
An arithmetic progression or arithmetic sequence () is a sequence of numbers such that the difference between the consecutive terms is constant. For instance, the sequence 5, 7, 9, 11, 13, 15, . . . is an arithmetic progression with a common differ ...
modulo
. (That is,
is a
Salem–Spencer set modulo
.) This set can be used to construct a
tripartite graph
In graph theory, a part of mathematics, a -partite graph is a graph whose vertices are (or can be) partitioned into different independent sets. Equivalently, it is a graph that can be colored with colors, so that no two endpoints of an edg ...
with
vertices and
edges that is locally linear. To construct this graph, make three sets of vertices, each numbered from
to
. For each number
in the range from
to
and each element
of
, construct a triangle connecting the vertex with number
in the first set of vertices, the vertex with number
in the second set of vertices, and the vertex with number
in the third set of vertices. Form a graph as the union of all of these triangles. Because it is a union of triangles, every edge of the resulting graph belongs to a triangle. However, there can be no other triangles than the ones formed in this way. Any other triangle would have vertices numbered
where
,
, and
all belong to
, violating the assumption that there be no arithmetic progressions
in
. For example, with
and
, the result of this construction is the nine-vertex Paley graph.
Regularity
Regular graphs with few vertices
A graph is
regular
The term regular can mean normal or in accordance with rules. It may refer to:
People
* Moses Regular (born 1971), America football player
Arts, entertainment, and media Music
* "Regular" (Badfinger song)
* Regular tunings of stringed instrum ...
when all of its vertices have the same
degree
Degree may refer to:
As a unit of measurement
* Degree (angle), a unit of angle measurement
** Degree of geographical latitude
** Degree of geographical longitude
* Degree symbol (°), a notation used in science, engineering, and mathemati ...
, 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
-regular locally linear graphs must have at least
vertices, because there are this many vertices among any triangle and its neighbors alone. (No two vertices of the triangle can share a neighbor without violating local linearity.) Regular graphs with exactly this many vertices are possible only when
is 1, 2, 3, or 5, and are uniquely defined for each of these four cases. The four regular graphs meeting this bound on the number of vertices are the 3-vertex 2-regular triangle
, the 9-vertex 4-regular Paley graph, the 15-vertex 6-regular Kneser graph
, and the 27-vertex 10-regular
complement graph
In the mathematical field of graph theory, the complement or inverse of a graph is a graph on the same vertices such that two distinct vertices of are adjacent if and only if they are not adjacent in . That is, to generate the complement ...
of the
Schläfli graph. The final 27-vertex 10-regular graph also represents the
intersection graph
In graph theory, an intersection graph is a graph that represents the pattern of intersections of a family of sets. Any graph can be represented as an intersection graph, but some important special classes of graphs can be defined by the types of ...
of the 27 lines on a
cubic surface
In mathematics, a cubic surface is a surface in 3-dimensional space defined by one polynomial equation of degree 3. Cubic surfaces are fundamental examples in algebraic geometry. The theory is simplified by working in projective space rather tha ...
.
Strongly regular graphs
A
strongly regular graph
In graph theory, a strongly regular graph (SRG) is defined as follows. Let be a regular graph with vertices and degree . is said to be strongly regular if there are also integers and such that:
* Every two adjacent vertices have comm ...
can be characterized by a quadruple of parameters
where
is the number of vertices,
is the number of incident edges per vertex,
is the number of shared neighbors for every adjacent pair of vertices, and
is the number of shared neighbors for every non-adjacent pair of vertices. When
the graph is locally linear. The locally linear graphs already mentioned above that are strongly regular graphs and their parameters are
*the triangle (3,2,1,0),
*the nine-vertex Paley graph (9,4,1,2),
*the Kneser graph
(15,6,1,3), and
*the complement of the Schläfli graph (27,10,1,5).
Other locally linear strongly regular graphs include
*the
Brouwer–Haemers graph
In the mathematical field of graph theory, the Brouwer–Haemers graph is a 20- regular undirected graph with 81 vertices and 810 edges.
It is a strongly regular graph, a distance-transitive graph, and a Ramanujan graph. Although its con ...
(81,20,1,6),
*the
Berlekamp–van Lint–Seidel graph (243,22,1,2),
*the
Cossidente–Penttila graph (378,52,1,8), and
*the
Games graph (729,112,1,20).
Other potentially-valid combinations with
include (99,14,1,2) and (115,18,1,3) but it is unknown whether strongly regular graphs with those parameters exist. The question of the existence of a strongly regular graph with parameters (99,14,1,2) is known as
Conway's 99-graph problem, and
John Horton Conway
John Horton Conway (26 December 1937 – 11 April 2020) was an English mathematician active in the theory of finite groups, knot theory, number theory, combinatorial game theory and coding theory. He also made contributions to many branc ...
has offered a $1000 prize for its solution.
Distance-regular graphs
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
, and the
halved Foster graph.
Density

One formulation of the
Ruzsa–Szemerédi problem asks for the maximum number of edges in an
-vertex locally linear graph. As
Imre Z. Ruzsa
Imre Z. Ruzsa (born 23 July 1953) is a Hungarian mathematician specializing in number theory.
Life
Ruzsa participated in the International Mathematical Olympiad for Hungary, winning a silver medal in 1969, and two consecutive gold medals with pe ...
and
Endre Szemerédi
Endre Szemerédi (; born August 21, 1940) is a Hungarian-American mathematician and computer scientist, working in the field of combinatorics and theoretical computer science. He has been the State of New Jersey Professor of computer science a ...
proved, this maximum number is
but is
for every
. The construction of locally linear graphs from progression-free sets leads to the densest known locally linear graphs, with
edges. (In these formulas,
,
, and
are examples of
little o notation
Big ''O'' notation is a mathematical notation that describes the limiting behavior of a function when the argument tends towards a particular value or infinity. Big O is a member of a family of notations invented by Paul Bachmann, Edmund Land ...
,
big Omega notation
Big ''O'' notation is a mathematical notation that describes the limiting behavior of a function when the argument tends towards a particular value or infinity. Big O is a member of a family of notations invented by Paul Bachmann, Edmund Land ...
, and
big O notation, respectively.)
Among
planar graph
In graph theory, a planar graph is a graph that can be embedded in the plane, i.e., it can be drawn on the plane in such a way that its edges intersect only at their endpoints. In other words, it can be drawn in such a way that no edges cro ...
s, the maximum number of edges in a locally linear graph with
vertices is
. The graph of the
cuboctahedron
A cuboctahedron is a polyhedron with 8 triangular faces and 6 square faces. A cuboctahedron has 12 identical vertices, with 2 triangles and 2 squares meeting at each, and 24 identical edges, each separating a triangle from a square. As such, it ...
is the first in an infinite sequence of
polyhedral graph
In geometric graph theory, a branch of mathematics, a polyhedral graph is the undirected graph formed from the vertices and edges of a convex polyhedron. Alternatively, in purely graph-theoretic terms, the polyhedral graphs are the 3-vertex-c ...
s with
vertices and
edges, for
, constructed by expanding the quadrilateral faces of
into antiprisms. These examples show that the
upper bound can be attained.
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.
References
{{reflist, refs=
[{{citation
, last1 = Brouwer , first1 = A. E. , author1-link = Andries Brouwer
, last2 = Haemers , first2 = W. H.
, department = A collection of contributions in honour of Jack van Lint
, doi = 10.1016/0012-365X(92)90532-K
, journal = ]Discrete Mathematics
Discrete mathematics is the study of mathematical structures that can be considered "discrete" (in a way analogous to discrete variables, having a bijection with the set of natural numbers) rather than "continuous" (analogously to continu ...
, mr = 1181899
, pages = 77–82
, title = Structure and uniqueness of the (81,20,1,6) strongly regular graph
, volume = 106/107
, year = 1992, doi-access = free
[{{citation
, last1 = Bondarenko , first1 = Andriy V.
, last2 = Radchenko , first2 = Danylo V.
, doi = 10.1016/j.jctb.2013.05.005
, issue = 4
, journal = ]Journal of Combinatorial Theory
The ''Journal of Combinatorial Theory'', Series A and Series B, are mathematical journals specializing in combinatorics and related areas. They are published by Elsevier. ''Series A'' is concerned primarily with structures, designs, and applicat ...
, mr = 3071380
, pages = 521–531
, series = Series B
, title = On a family of strongly regular graphs with
, volume = 103
, year = 2013, arxiv = 1201.0383
[{{citation
, last1 = Cossidente , first1 = Antonio
, last2 = Penttila , first2 = Tim
, doi = 10.1112/S0024610705006964
, issue = 3
, journal = ]Journal of the London Mathematical Society
The London Mathematical Society (LMS) is one of the United Kingdom's learned societies for mathematics (the others being the Royal Statistical Society (RSS), the Institute of Mathematics and its Applications (IMA), the Edinburgh Mathematica ...
, mr = 2190334
, pages = 731–741
, series = Second Series
, title = Hemisystems on the Hermitian surface
, volume = 72
, year = 2005
[{{citation
, last1 = Devillers , first1 = Alice
, last2 = Jin , first2 = Wei
, last3 = Li , first3 = Cai Heng
, last4 = Praeger , first4 = Cheryl E. , author4-link = Cheryl Praeger
, doi = 10.1016/j.jcta.2012.10.004
, issue = 2
, journal = ]Journal of Combinatorial Theory
The ''Journal of Combinatorial Theory'', Series A and Series B, are mathematical journals specializing in combinatorics and related areas. They are published by Elsevier. ''Series A'' is concerned primarily with structures, designs, and applicat ...
, mr = 2995054
, pages = 500–508
, series = Series A
, title = Local 2-geodesic transitivity and clique graphs
, volume = 120
, year = 2013, doi-access = free
. In the notation of this reference, the family of -regular graphs is denoted as .
[{{citation
, last1 = Erdős , first1 = Paul , author1-link = Paul Erdős
, last2 = Rényi , first2 = Alfréd , author2-link = Alfréd Rényi
, last3 = Sós , first3 = Vera T. , author3-link = Vera T. Sós
, journal = Studia Sci. Math. Hungar.
, pages = 215–235
, title = On a problem of graph theory
, url = https://www.renyi.hu/~p_erdos/1966-06.pdf
, volume = 1
, year = 1966]
[{{citation
, last1 = Berlekamp , first1 = E. R. , author1-link = Elwyn Berlekamp
, last2 = van Lint , first2 = J. H. , author2-link = J. H. van Lint
, last3 = Seidel , first3 = J. J.
, doi = 10.1016/B978-0-7204-2262-7.50008-9
, journal = A Survey of Combinatorial Theory (Proc. Internat. Sympos., Colorado State Univ., Fort Collins, Colo., 1971)
, mr = 0364015
, pages = 25–30
, publisher = North-Holland , location = Amsterdam
, title = A strongly regular graph derived from the perfect ternary Golay code
, year = 1973, isbn = 9780720422627 , url = https://research.tue.nl/nl/publications/a-strongly-regular-graph-derived-from-the-perfect-ternary-golay-code(10db0cd0-72b4-4d07-bc44-83d07d86e7f0).html ]
[{{citation
, last = Fronček , first = Dalibor
, hdl = 10338.dmlcz/136481 , hdl-access = free
, issue = 1
, journal = Mathematica Slovaca
, mr = 1016323
, pages = 3–6
, title = Locally linear graphs
, volume = 39
, year = 1989]
[{{citation
, last = Fan , first = Cong
, doi = 10.1002/(SICI)1097-0118(199609)23:1<21::AID-JGT2>3.0.CO;2-M
, issue = 1
, journal = Journal of Graph Theory
, mr = 1402135
, pages = 21–31
, title = On generalized cages
, volume = 23
, year = 1996]
[{{citation
, last1 = Farley , first1 = Arthur M.
, last2 = Proskurowski , first2 = Andrzej
, doi = 10.1002/net.3230120404
, issue = 4
, journal = Networks
, mr = 686540
, pages = 393–403
, title = Networks immune to isolated line failures
, volume = 12
, year = 1982; see in particular p. 397: "We call the resultant network a triangle cactus; it is a cactus network in which every line belongs to exactly one triangle."]
[{{citation
, last1 = Hiraki , first1 = Akira
, last2 = Nomura , first2 = Kazumasa
, last3 = Suzuki , first3 = Hiroshi
, doi = 10.1023/A:1008776031839
, issue = 2
, journal = Journal of Algebraic Combinatorics
, mr = 1761910
, pages = 101–134
, title = Distance-regular graphs of valency 6 and
, volume = 11
, year = 2000, doi-access = free
]
[{{citation
, last1 = Larrión , first1 = F.
, last2 = Pizaña , first2 = M. A.
, last3 = Villarroel-Flores , first3 = R.
, journal = Ars Combinatoria
, mr = 2867738
, pages = 385–391
, title = Small locally {{math, ''nK''2 graphs
, url = http://xamanek.izt.uam.mx/map/papers/locallynk5w.pdf
, volume = 102
, year = 2011]
[{{citation
, last = Makhnëv , first = A. A.
, doi = 10.1007/BF01158426
, issue = 5
, journal = Akademiya Nauk SSSR
, mr = 980587
, pages = 667–672, 702
, title = Strongly regular graphs with
, volume = 44
, year = 1988, s2cid = 120911900
]
[{{citation
, last = Munaro , first = Andrea
, doi = 10.1016/j.disc.2017.01.006
, issue = 6
, journal = ]Discrete Mathematics
Discrete mathematics is the study of mathematical structures that can be considered "discrete" (in a way analogous to discrete variables, having a bijection with the set of natural numbers) rather than "continuous" (analogously to continu ...
, mr = 3624607
, pages = 1210–1226
, title = On line graphs of subcubic triangle-free graphs
, volume = 340
, year = 2017, url = https://pure.qub.ac.uk/en/publications/on-line-graphs-of-subcubic-trianglefree-graphs(aa6963d5-59e6-4d92-a9d6-d89d4374396c).html
[{{citation
, last1 = Ruzsa , first1 = I. Z. , author1-link = Imre Z. Ruzsa
, last2 = Szemerédi , first2 = E. , author2-link = Endre Szemerédi
, contribution = Triple systems with no six points carrying three triangles
, mr = 519318
, pages = 939–945
, publisher = North-Holland , location = Amsterdam and New York
, series = Colloq. Math. Soc. János Bolyai
, title = Combinatorics (Proc. Fifth Hungarian Colloq., Keszthely, 1976), Vol. II
, volume = 18
, year = 1978]
[{{citation
, last = Zelinka , first = Bohdan
, hdl = 10338.dmlcz/133017 , hdl-access = free
, issue = 2
, journal = Mathematica Slovaca
, mr = 945363
, pages = 99–103
, title = Polytopic locally linear graphs
, volume = 38
, year = 1988]
[{{citation
, last1 = Zehavi , first1 = Sa'ar
, last2 = Oliveira , first2 = Ivo Fagundes David
, arxiv = 1707.08047
, title = Not Conway's 99-graph problem
, year = 2017]
Graph families