Realizations of Rigid Graphs††thanks: Supported by the Austrian Science Fund (FWF): F5011-N15. Based on joint work with Jose Capco, Matteo Gallet, Georg Grasegger, Niels Lubbes, Josef Schicho, and Elias Tsigaridas.
Abstract
A minimally rigid graph, also called Laman graph, models a planar framework which is rigid for a general choice of distances between its vertices. In other words, there are finitely many ways, up to isometries, to realize such a graph in the plane. Using ideas from algebraic and tropical geometry, we derive a recursive formula for the number of such realizations. Combining computational results with the construction of new rigid graphs via gluing techniques, we can give a new lower bound on the maximal possible number of realizations for graphs with a given number of vertices.
1 Introduction
The theory of rigid graphs forms a fascinating research area in the intersection of graph theory, computational algebraic geometry, and algorithms. The study of rigid structures, also called frameworks, was originally motivated by mechanics, and it goes back at least to the 19th century. Besides being a very interesting mathematical subject, rigid graphs and the underlying theory of Euclidean distance geometry have meanwhile found a large number of applications ranging from robotics and bioinformatics to sensor network localization and architecture.
Suppose that we are given a graph with edge set . We consider the set of all possible realizations (embeddings) of the graph in the Euclidean plane such that the lengths of the edges coincide with some prescribed edge labeling . Edges and vertices are allowed to overlap in such a realization. For example, suppose that has four vertices and is a complete graph minus one edge. Figure 1 shows all possible realizations of up to rotations and translations, for a certain edge labeling. We address the following problem:
For a given graph determine its number of realizations for a general edge labeling, up to rotations and translations.
Here we say that a property holds for a general edge labeling if it holds for all edge labelings belonging to a dense open subset of the vector space of all edge labelings.
The realizations of a graph can be considered as physical structures in the plane, which consist of rods that are connected by rotational joints. If a graph together with an edge labeling admits infinitely (resp. finitely) many realizations up to rotations and translations, then the corresponding planar structure is flexible (resp. rigid), see Figure 2.
A graph is called generically rigid (or isostatic) if a general edge labeling yields a rigid realization. No edge in a generically rigid graph can be removed without losing rigidity, that is why such graphs are also called minimally rigid in the literature. The complete graph on four vertices is for instance not considered to be minimally generically rigid, since for a general choice of edge lengths it will not have a realization: imagine you would have to add the missing edge in either of the realizations depicted in Figure 1 — for most prescribed lengths of the new edge this will not be possible, see also Figure 2. Hilda Pollaczek-Geiringer [9] and independently Gerard Laman [8] characterized the property of generic rigidity in terms of the number of edges and vertices of the graph and its subgraphs, hence such objects are also known as Laman graphs.
Theorem 1
A graph is minimally (generically) rigid if and only if , and for every subgraph with at least two vertices it holds .
All finitely many realizations of a Laman graph can be obtained as the solution set of a system of quadratic polynomial equations, where the edge labels are either given by concrete numbers or interpreted as parameters. In general it is difficult to produce results on the number of real solutions of such systems. In such situations, one often switches to a complex setting; this also enables us to apply results from algebraic geometry. Hence, from now on, we consider edge labelings with complex numbers, and we are interested in the number of complex solutions, up to an equivalence relation on generalizing the direct isometries of ; this number is the same for any general edge labeling, so we call it the Laman number of the graph , denoted by . For some graphs up to vertices, this number had been computed using random values for the edge labels [7] — this means that it is very likely, but not absolutely certain, that these computations give the true numbers. Upper and lower bounds for Laman numbers are considered in [4, 10, 1]. Note that for many Laman graphs there exists a (real) edge labeling such that the number of real realizations equals precisely the Laman number. However, there are graphs for which the Laman number gives only an upper bound on the number of real realizations.
Our main result is a combinatorial algorithm that computes the number of complex realizations of any given Laman graph; it is much more efficient than just solving the corresponding nonlinear system of equations. The algorithm and its correctness proof are presented in detail in [2]. Using a supercomputer, we apply this algorithm to a large collection of Laman graphs and identify among all Laman graphs with vertices () the one with the maximal Laman number. This allows us to derive better lower bounds on the number of realizations [5]. In the following, we provide a concise summary of these results, focusing on the main ideas and the algorithmic point of view.
2 Computing the Laman Number
We write to denote a finite graph with vertices and edges . An edge between two vertices and is denoted by ; this notation expresses the fact that all graphs considered here are undirected.
Using nonnegative real labels for the edge lengths, the number of realizations in for a general edge labeling is not well-defined, since it heavily depends on the actual labeling and not only on the graph. For example, the complete graph permits two different realizations (one being the reflection of the other) for almost all edge labelings that satisfy the triangle inequality, while it has none for all other labelings. In order to define a number that depends only on the graph, we switch to a complex setting. In order to keep notations simple, we take the convention that the edge labelings give the squared distances between vertices.
Definition 1
Let be a graph.
-
A labeling of is a function . The pair is called a labeled graph.
-
A realization of is a function . Let be a labeling of : we say that a realization is compatible with if for each the distance between its endpoints agrees with its label:
where .
A labeled graph is realizable if and only if there exists a realization that is compatible with the edge labeling .
We say that two realizations of a graph are equivalent if and only if there exists a direct isometry of between them, where is a map of the form
where is an orthogonal matrix with determinant and .
Definition 2
A labeled graph is called rigid if it is realizable and there are only finitely many realizations compatible with , up to equivalence.
Our main interest is to count the number of realizations of generically rigid graphs, namely graphs for which almost all realizable labelings induce rigidity.
Definition 3
A graph is called generically realizable if for a general labeling the labeled graph is realizable. A graph is called generically rigid if for a general labeling the labeled graph is rigid.
The number of realizations can be found by solving the following system of equations
Equivalently, we can study the map whose preimages of correspond to the solutions of the above system
Still we get infinitely many solutions due to translations and rotations. Translations can be eliminated by moving one vertex to the origin. In order to handle rotations we perform the following transformation , . Then the above equations become
In this way, solutions that differ only by a rotation are the same in a suitable projective setting. If we transform the map accordingly we obtain a map whose degree is finite and gives the sought number of realizations.
In order to set up a recursive formula for the degree of the map, we want to be able to handle the two factors and independently. To do this we duplicate the graph, and for technical reasons we allow a more general class of graphs. The resulting concept is roughly speaking a pair of graphs with a bijection between their sets of edges. We identify edges by this bijection.
Definition 4
A bigraph is a pair of undirected graphs — allowing several components, multiple edges and self-loops — where and . The set is called the set of biedges, and there are two maps that assign to each the corresponding vertices in and , respectively. Note that and are in general different graphs but there is a bijection between their sets of edges.
We define the Laman number of a bigraph as the degree of an associated map defined in a similar way as . Moreover, we show that the Laman number of a graph equals the Laman number of the corresponding bigraph.
Proposition 1
The number of realizations of a Laman graph is equal to the Laman number of the bigraph .
The idea for proving the recursion formula in Theorem 2 is inspired by tropical geometry: we consider the equation system over the field of Puiseux series; an algebraic relation between Puiseux series implies a piecewise linear relation between their orders. We encode these piecewise linear relations in a combinatorial data which we call bidistance. A bidistance is a pair of functions from the edges of a bigraph to the rational numbers , which satisfies certain conditions. Using a bidistance of a bigraph we can define a new bigraph with the same number of edges. The solutions of the equations for the bigraph that correspond to the bidistance are in bijection with the solutions of the equations for . Then the solutions for are partitioned by the bidistances, implying the following formula for the Laman number:
From this we finally show the combinatorial recursion formula. For doing so we prove that is either easy to compute or the product of two Laman numbers of bigraphs with fewer edges each. We need some more notation to state the theorem.
Definition 5
Let be a bigraph with biedges , then we say that is pseudo-Laman if , where .
It can be easily seen, that if is a Laman graph, then the bigraph is pseudo-Laman. From a given bigraph we want to construct new ones with a smaller number of edges. We introduce two constructions, quotient and complement, both for usual graphs (see Figure 3) and for bigraphs.
Definition 6
Let be a graph, and let . We define two new graphs, denoted and , as follows:
-
Let be the subgraph of determined by . Then we define to be the graph obtained as follows: its vertices are the equivalence classes of the vertices of modulo the relation dictating that two vertices and are equivalent if there exists a path in connecting them; its edges are determined by edges in .
-
Let be the set of vertices of that are endpoints of some edge not in . Set . Define .
Definition 7
Let be a bigraph, where and . Given , we define two bigraphs and , with the same set of biedges .
Theorem 2
Let be a pseudo-Laman bigraph with biedges . Let be a fixed biedge, then
-
If or has a self-loop, then .
-
If both and consist of a single edge joining two different vertices, then .
-
Otherwise
where each pair satisfies and , and where and are such that , , and both and are pseudo-Laman.
Although the algorithm resulting from Theorem 2 has
exponential complexity, it is much faster than computing the Laman number from
a parametrized system of polynomial equations, even if the parameters are
substituted by random values. Using our recursion formula we were able to
compute Laman numbers for all Laman graphs up to 13 vertices. Furthermore, we
computed Laman numbers for single graphs up to 22 vertices, which was out of
reach with the previous methods. Additional information including
implementations in Mathematica and in C++
can be found at
www.koutschan.de/data/laman/ and https://zenodo.org/record/1245506.
3 Bounds on the Number of Realizations
The first upper bound [1] on the number of realizations of rigid graphs was derived using degree bounds from algebraic geometry. Based on the theory of distance matrices and determinantal varieties, the upper bound is obtained, where denotes the number of vertices. This bound was improved [10] by exploiting the sparsity of the underlying polynomial systems, and it was further improved by applying additional tricks to take advantage of the sparsity and the common sub-expressions that appear in the polynomial systems [4]. A direct application of mixed volume techniques, which capture the sparsity of a polynomial system, yields a bound of . If one also takes into account the degree of the vertices, then for a Laman graph with degree- vertices, the number of realizations of is bounded from above by .
The first lower bounds for the number of realizations of Laman graphs were (approx. ) and (approx. ), which exploited a gluing process using a caterpillar, resp. fan construction [1]. Both constructions use the three-prism graph (sometimes also called Desargues graph) as a building block, which is a graph with vertices and realizations. More recent lower bounds are from [3] and from [7].
We derive better lower bounds on the maximal number of complex realizations of minimally rigid graphs with a prescribed number of vertices. Clearly, the number of complex realizations is an upper bound on the number of real realizations. It is known [7] that the numbers of real and complex realizations do not match in general, and it is an interesting problem to quantify this gap. On the one hand, one can construct infinite families of graphs for which the ratio between real and complex realizations tends to zero. On the other hand, there are graphs, see [3] for a nontrivial example, where real edge lengths can be found such that there exist as many real realizations as complex ones.
Using the novel algorithm presented in Section 2 we compute the exact number of realizations for graphs with a relatively small number of vertices. Then we introduce techniques to “glue” an arbitrary number of such small graphs in order to produce graphs with a high number of vertices (and edges) that preserve rigidity. The gluing process allows us to derive the number of realizations of the final graph from the number of realizations of its components, and in this way we derive a lower bound for the number of realizations in . Moreover, we perform extensive experiments in order to identify those small graphs that attain the maximum number of realizations and that can be the building blocks for the gluing process.
Definition 8
We define to be the largest Laman number that is achieved among all Laman graphs with vertices.
3.1 Constructions
We discuss different constructions of infinite families of Laman graphs with having vertices. We do this in a way such that we know precisely the Laman number for each member of the family. This directly leads to a lower bound on . The ideas of these constructions are described in [1]; they were used to get lower bounds by connecting several three-prism graphs at a common basis. Here, we generalize them in order to connect any Laman graphs at an arbitrary Laman base. We present three such constructions.
The caterpillar construction [1] works as follows: place copies of a Laman graph in a row and connect every two neighboring ones by means of a shared edge (see Figure 4). Alternatively, one can let all graphs share the same edge. In any case, the resulting assembly has vertices and its Laman number is , since each of the copies of can achieve all its different realizations, independently of what happens with the other copies. Hence, among all Laman graphs with vertices there exists one with realizations. If the number of vertices is not of the form then we can use the previous caterpillar graph with copies of and perform some Henneberg steps of type 1: such a step adds one vertex and connects it to two existing vertices, thereby doubling the Laman number. Summarizing, for any Laman graph , we obtain the following lower bound from the caterpillar construction:
The second construction is the fan construction: take a Laman graph that contains a triangle (i.e., a -cycle), and glue copies of along that triangle (see Figure 5). Once we fix one of the two possible realizations of that triangle, each copy of admits realizations. The remaining realizations are obtained by mirroring, i.e., by using the second realization of the common triangle. Similarly as before, the assembled fan is a Laman graph with vertices that admits realizations. Hence, we get the following lower bound:
While the caterpillar construction can be done with any Laman graph, this is not the case with the fan. For example, the Laman graph with 12 vertices displayed in Figure 7 has no -cycle and therefore cannot be used for the fan construction.
As a third construction, we propose the generalized fan construction: instead of a triangle, we may use any Laman subgraph of for gluing. Using copies of , we end up with a fan consisting of vertices and Laman number at least . Here we assume that the realizations of are divided into equivalence classes of equal size, by considering two realizations of as equivalent if the induced realizations of are equal (up to rotations and translations). If this assumption was violated, the resulting lower bound would be even better; thus we can safely state the following bound:
Note that the previously described fan construction is a special instance of the generalized fan, by taking as the subgraph a triangle with . To indicate the subgraph of a generalized fan construction we also write -fan. The fan fixing the 4-vertex Laman graph is then denoted by -fan (see Figure 6 for these base graphs and their naming convention).
triangle | “three-prism” |
---|
3.2 Lower bounds
In order to get good lower bounds, we need particular Laman graphs that have a large number of realizations. For this purpose we have computed the Laman numbers of all Laman graphs with up to vertices. For each we have identified the (unique) Laman graph with the highest number of realizations. We present these numbers and the corresponding graphs for in Figure 7.
However, there are 44 176 717 Laman graphs with 12 vertices, and it took 56 processor days to compute the Laman numbers of all of them. Going through all 1 092 493 042 Laman graphs with 13 vertices was an even more challenging undertaking, and it is unrealistic to do the same for larger Laman graphs. In order to proceed further, we developed some heuristics to construct graphs with very high Laman numbers, albeit not necessarily the highest one.
caterpillar | fan | -fan | -fan | -fan | |
---|---|---|---|---|---|
6 | 2.21336 | 2.28943 | 2 | 2 | - |
7 | 2.23685 | 2.30033 | 2.28943 | 2 | 2 |
8 | 2.26772 | 2.32542 | 2.30033 | 2.28943 | 2 |
9 | 2.30338 | 2.35824 | 2.35216 | 2.30033 | 2.28943 |
10 | 2.33378 | 2.38581 | 2.35824 | 2.35216 | 2.30033 |
11 | 2.36196 | 2.41159 | 2.38581 | 2.35824 | 2.35216 |
12 | 2.39386 | 2.43198 | 2.43006 | 2.39802 | 2.35824 |
13 | 2.40453 | 2.44498 | 2.44772 | 2.42197 | 2.39802 |
14 | 2.43185 | 2.46087 | 2.46391 | 2.44251 | 2.42197 |
15 | 2.44695 | 2.47445 | 2.47076 | 2.45031 | 2.42906 |
16 | 2.46890 | 2.48657 | 2.48794 | 2.47166 | 2.43712 |
17 | 2.48875 | 2.49779 | 2.49160 | 2.48043 | 2.46341 |
18 | 2.49378 | 2.50798 |
We now use these results to derive new and better lower bounds than the previously known ones. We apply the caterpillar construction to the Laman graphs with the maximal number of realizations for , and for we use graphs with high Laman numbers that were found heuristically. The fan construction is applied to the maximal Laman graphs for only, since it is not applicable to the maximal graph with vertices, because that graph does not contain as a subgraph (see Figure 7). All lower bounds that we obtained by these constructions are summarized in Table 1.
References
- [1] C. Borcea and I. Streinu, The number of embeddings of minimally rigid graphs, Discrete & Computational Geometry 31 (2004), pp. 287–303.
- [2] J. Capco, M. Gallet, G. Grasegger, C. Koutschan, N. Lubbes, and J. Schicho, The number of realizations of a Laman graph, SIAM Journal on Applied Algebra and Geometry 2(1) (2018), pp. 94–125 (see also arXiv:1701.05500, https://zenodo.org/record/1245506, https://zenodo.org/record/1245517).
- [3] I. Emiris and G. Moroz, The assembly modes of rigid 11-bar linkages, IFToMM 2011 World Congress, Guanajuato, Mexico arXiv:1010.6214.
- [4] I. Emiris, E. Tsigaridas and A. Varvitsiotis, Mixed volume and distance geometry techniques for counting Euclidean embeddings of rigid graphs, in: Distance geometry, Springer, New York, 2013 pp. 23–45.
- [5] G. Grasegger, C. Koutschan, and E. Tsigaridas, Lower bounds on the number of realizations of rigid graphs, Experimental Mathematics 29(2) (2020), pp. 125–136 arXiv:1710.08237.
- [6] J. Graver, B. Servatius and H. Servatius, Combinatorial rigidity, American Mathematical Society, Providence, RI, 1993.
- [7] B. Jackson and J. Owen, Equivalent realisations of a rigid graph, Discrete Applied Mathematics 256 (2019), pp. 42–58 arXiv:1204.1228.
- [8] G. Laman, On graphs and rigidity of plane skeletal structures, Journal of Engineering Mathematics 4 (1970), pp. 331–340.
- [9] H. Pollaczek-Geiringer, Über die Gliederung ebener Fachwerke, Zeitschrift für Angewandte Mathematik und Mechanik (ZAMM) 7(1) (1927), pp. 58–72.
- [10] R. Steffens and T. Theobald, Mixed volume techniques for embeddings of Laman graphs, Computational Geometry 43 (2010), pp. 84–93.