2D Minimal Graph Rigidity is in for One-Crossing-Minor-Free Graphs
Abstract
Minimally rigid graphs can be decided and embedded in the plane efficiently, i.e. in polynomial time. There is also an efficient randomized parallel algorithm, i.e. in . We present an -algorithm to decide whether one-crossing-minor-free graphs are minimally rigid. In the special case of -free graphs, we also compute an infinitesimally rigid embedding in .
Keywords and phrases:
Graph Rigidity, Parallel Algorithms, Polynomial Identity Testing, DerandomizationFunding:
Rohit Gurjar: Supported by SERB MATRICS grant number MTR/2022/001009.Copyright and License:
2012 ACM Subject Classification:
Theory of computation Parallel algorithms ; Theory of computation Problems, reductions and completenessAcknowledgements:
The authors thank the organizers of Dagstuhl Seminar 24381 on Algebraic and Analytic Methods in Computational Complexity for inviting them. Part of this research was done during the seminar. We thank Dhara Thakkar for helpful discussions.Editors:
Meena Mahajan, Florin Manea, Annabelle McIver, and Nguyα» n Kim ThαΊ―ngSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl β Leibniz-Zentrum fΓΌr Informatik
1 Introduction
Graph rigidity is the combinatorial study of rigidity or flexibility of bar-and-joint frameworks, a set of solid bars connected via hinge joints. Historically, the problem goes back to Euler in 1776, who asked about the rigidity of polyhedrons in D. Rigidity of bar-and-joint frameworks, particularly in D, has been studied extensively for applications in mechanical engineering like for collision-free robot arm motion planning, or molecular conformations, or network topologies with distance and angle constraints.
Graph rigidity is also a central problem in theoretical computer science. It yields a combinatorial interpretation of certain polynomial identity testing (PIT) problems that can be solved efficiently for D-rigidity, but the complexity for larger dimensions is wide open, see for example the exposition of Raz and Wigderson [35] or the book of LovΓ‘sz [29, Chapter 15]. Other interesting aspects are that rigidity defines a matroid and that minimal rigidity reduces to bipartite perfect matching. The latter point motivates the question for the parallel complexity of rigidity.
Describing the problem.
A bar-and-joint framework can be seen as a graph , where vertices are the joints and edges are the bars, together with an embedding , for the case of D. The vertices of are allowed to move continuously subject to the constraint that the distance between adjacent vertices does not change, i.e., the lengths of the bars are fixed. A framework is rigid if every such continuous motion of the framework preserves the distance of all pairs of vertices, i.e., also of non-adjacent vertices. Otherwise the framework is flexible.
A natural question is whether rigidity/flexibility is just the property of the underlying graph or whether it also depends on the specific embedding . That is, whether rigidity is just determined by the combinatorial structure of the bars, i.e. which tuples of bars are connected at one joint, and does not depend on the specific lengths of the bars. The first answer is that there are examples that show that rigidity depends on the embedding . However, for any graph, either almost all of its embeddings are rigid or almost all of them are flexible [16, 5]. Therefore one defines a graph to be rigid if almost all embeddings result in a rigid framework , otherwise is flexible. Graph rigidity can be equivalently defined based on the notion of infinitesimal rigidity, see Section 2.1 and Definition 4.
Characterizations of minimal rigidity.
A graph is minimally rigid if the removal of any edge makes it flexible. Minimally rigid graphs have a combinatorial characterization that is often attributed to Laman, but was already known to Geiringer.
Definition 1 (Laman graph).
A graph is a Laman graph if it has edges and for all with , the subgraph of induced by has at most edges, i.e.
| (2) |
The Laman condition (2) gives rise to a matroid, the rigidity matroid for a graph . The ground set is the set of edges . A set is independent, if graph fulfills (2). The base sets of this matroid are the minimally rigid subgraphs of (on ).
There is another combinatorial characterization.
Theorem 3 ([30]).
A graph is minimally rigid iff multigraph is the union of two edge-disjoint spanning trees.
Complexity and motivation.
In D, rigidity can be solved in polynomial time, namely in time [20, 15]. For minimal rigidity, this has been improved to [15]. We are interested in the parallel complexity of minimal rigidity.
Note that the characterization of minimal rigidity in Theorem 2 is similar in nature to Hallβs Theorem [19] that characterizes the existence of perfect matchings in bipartite graphs. This can actually be formalized to a reduction from the minimal rigidity problem to the bipartite perfect matching problem [20]. Since the reduction to bipartite perfect matching is efficient in parallel, i.e. in , the parallel complexity of bipartite perfect matching carries over to minimal rigidity. Bipartite perfect matching is in randomized , [33]. The derandomization question, whether one can avoid the randomness without much loss in efficiency, is of major interest in complexity theory. A few years back, the randomized algorithm has been derandomized to a quasi- bound for bipartite perfect matching [14]. This result implies a quasi- algorithm for minimal rigidity. One of the major motivations for us to study minimal graph rigidity is that we might have better chances to show that it is in than for bipartite perfect matching. That is, minimal rigidity is the litmus test for bipartite perfect matching. Note that a reduction in the other direction is not known. Hence, minimal rigidity might be easier than bipartite perfect matching.
Interestingly, also the complexity questions around general rigidity (i.e., not necessarily minimal), have a status quite similar to those around the bipartite matching problem. Using the matroid property, one can get a polynomial-time algorithm to test if a graph is rigid. Both problems, matching and rigidity, reduce to the polynomial identity testing (PIT) problem [33, 35], and thus they have -algorithms. Its connection with matching and PIT makes graph rigidity a very interesting candidate for studying derandomization.
Our results.
First, we observe that for planar graphs one can decide minimal rigidity and compute an infinitesimally rigid realization in (Theorem 19). This is based on results in [40, 18, 38]
Our first main result is that for -free graphs, we can decide whether a graph is Laman in (Theorem 23) and also compute a rigid realization (Theorem 25).
Also whether a one-crossing-minor-free graph is Laman can be decided in (Theorem 29). However, an -algorithm for computing a rigid realization for one-crossing-minor-free graphs or bounded treewidth graphs remains an open problem.
Note that extending results from planar graphs to such minor-free graphs is a technically nontrivial step that has also been done in other contexts, for example, famously by Vazirani [43]: Kasteleyn [24] showed that the number of perfect matchings in planar graphs can be efficiently computed. Then, based on a result of Little [28], Vazirani [43] extended the result to -free graphs in . Later, the result was further extended to -free graphs in [39]. There are many more results in a similar flavor, see for example [10, 42, 26, 25, 3, 8, 7, 12]. Although the literature gives a meta strategy, a result for planar graphs does not automatically imply a result for other minor-free graph classes and new ideas are required.
Following the literature, we decompose the given one-crossing-minor-free graph (or -free graph) into planar components or components of bounded treewidth. We observe that there are parallel algorithms to decide rigidity of graphs of bounded treewidth, see Section 2.2. Hence, for planar and bounded treewidth components we can check whether they are Laman. Our main technical tools which allow us to lift the results from planar/bounded treewidth case to -free/one-crossing-minor free graphs are as follows.
-
For all families of -vertex graphs, we construct gadget graphs such that adding the gadget to a graph makes it Laman if and only if adding some member of the family makes it Laman (Lemma 28).
-
Combining rigid embeddings of a set of Laman graphs to find a rigid embedding of a Laman graph obtained by joining them using -sum operations (Lemma 24).
Note that obtaining a parallel algorithm for minimal rigidity does not give the same for rigidity, as there is no parallel reduction known. In fact, finding an (or quasi-) algorithm for D graph rigidity is open, even for planar graphs.
2 Preliminaries
For , we denote . We use standard complexity classes, in particular, the classes that consist of uniform boolean circuit families with bounded fan-in, polynomial size, and depth . The corresponding randomized classes are denoted by . A slight extension is quasi- that is defined similarly to , but with circuits of quasi-polynomial size .
For a graph we denote as the number of vertices and as the number of edges of . For a set , the edges of that are within are denoted by . A graph is planar if it can be drawn in the Euclidean plane such that the edges intersect only at the endpoints. The crossing number of a graph is the minimum number such that has an embedding in the plane with edge crossings. For example planar graphs have crossing number and and have crossing number . Planar graphs are minor-closed. However, this does not hold in general for graphs with crossing number : There are examples of graphs with crossing number that have minors with crossing number . To capture such graphs as well, Robertson and Seymour [37] defined a graph to be single-crossing or one-crossing, if is the minor of a graph with crossing number . With this definition, one-crossing graphs are closed under minors. However, in the literature, often the simpler definition is used that one-crossing graphs are those with crossing number .
For graphs , we say that is -free, if is not a minor of . Graph is one-crossing-minor-free, if there exists a one-crossing graph such that is -free. Hence, planar, -free, and -free graphs are all one-crossing-minor-free.
2.1 Infinitesimal rigidity of frameworks
In a bar-and-joint framework we are given a graph and an embedding in the plane. The edges of the graph are considered as bars and the vertices as joints that are free to move continuously. However, the length of the bars does not change. The framework is flexible, if there is a continuous motion such that the distance of some vertices changes. Otherwise, the framework is rigid. Figure 1 shows examples.
The problem whether a given framework is flexible is -hard [1]. It is complete for the existential theory of reals [2]. We consider a restricted version of the problem called infinitesimal rigidity that can be solved efficiently.
Let where and . Let be the coordinates of vertex . For an edge , the square of its length is
| (3) |
Consider a smooth motion by treating the coordinates as functions and in time , such that . The condition for the motion is that does not change, i.e. is constant. Hence, when we look at the derivative of (3) w.r.t. , we get
| (4) |
We get such equations, one for every edge in . We combine them in matrix-vector form. That is, we define the rigidity matrix as a matrix, with columns for the -part of the nodes and columns for the -part. Let be the row for edge in . We define the -th entry as
| (5) |
The derivatives we put in the velocity vector ,
| (6) |
Then (4) becomes
| (7) |
For example, consider the triangle graph on three nodes . Then is a matrix,
| (8) |
Any nonzero vector that fulfills (7) corresponds to an infinitesimal motion. However, there are three trivial motions that are always possible: a shift of all vertices in -direction or in -direction, and a rotation around the origin,
| (9) | ||||
| (10) | ||||
| (11) |
Hence, the nullspace of has dimension at least , and therefore, the rank of can be at most .
Definition 4 (Infinitesimal rigidity).
A framework is infinitesimally rigid if
| (12) |
A graph is (infinitesimally) rigid111In the literature it is common to skip the adjective infinitesimally when considering a graph . if there exists an embedding such that the framework is infinitesimally rigid.
The definition for a graph to be rigid given here is equivalent to the definition given in the Introduction [16, 5].
Clearly, the condition for the rank can only be achieved when we have edges. The rank of a matrix can be computed in [32], thus, infinitesimal rigidity for a given embedding can be tested in . If is not given, the rigidity problem becomes a PIT-question. In D, it can be solved in polynomial time.
We remark that the notions of rigidity and infinitesimal rigidity of a framework are not equivalent: If is infinitesimal rigid, it is also rigid. But when , the framework might still be rigid. This is because a nonzero velocity vector with only guarantees that the edges of maintain their lengths in direction . It does not ensure that two non-adjacent nodes change their distance. Examples where this happens are the trivial motions, but there are also examples with non-trivial motions.
2.2 Rigidity of graphs with bounded treewidth
A tree decomposition of a graph is a tree with a set of nodes , the bags, where each is a subset of , such that the following conditions hold.
-
1.
-
2.
,
-
3.
forms a subtree of .
The width of the tree decomposition is . The treewidth of is the minimum width over all tree decompositions of . A class of graphs has bounded treewidth, if there is a constant , such that all graphs in have treewidth bounded by .
Courcelle [9] showed that when a graph property is expressible in monadic second-order logic (MSO-logic), then it can be decided in linear time when the input graph has bounded treewidth. Elberfeld, Jakoby and Tantau [11] showed a logspace-version of Courcelleβs Theorem. The characterization in Theorem 3 can be used to express rigidity in MSO-logic (see the full version [17] of this paper). Since a graph is rigid iff it has a spanning minimally rigid subgraph, we get a MSO-predicate for being rigid. It follows that whether a graph is Laman or rigid is in , and hence in , for graphs with bounded treewidth.
Theorem 5.
Rigidity of graphs with bounded treewidth can be decided in .
2.3 Structural Decompositions
Let be a graph. A set with is called a -separating set, if is not connected. Let be the connected components of . The split graphs with respect to are the graphs , where is the graph obtained by taking the subgraph of induced by , and adding edges within such that all pairs of vertices in are adjacent, for . The edges in the split graphs that are within are called virtual edges (even those edges in which already exist in ). A graph is called -connected if there is no -separating set in .
A -separating set is called articulation point for , separating pair for , and separating triple for .
Laman graphs are clearly connected, actually even -connected.
Lemma 6 ([23, Lemma 2.6]).
Laman graphs are -connected.
In particular, every node of a Laman graph has degree at least two.
-connected components.
Hopcroft and Tarjan [22] describe an algorithm to decompose a -connected graph into triconnected components by splitting successively along all separating pairs in . Actually, it suffices to split along -connected separating pairs, where a separating pair in is called -connected, if there are three vertex disjoint paths between and in .
The components computed by this algorithm are of three types: -connected split graphs of , simple cycles, or -bonds. A -bond is a multi-graph with two vertices and three edges between them.
It is known that the triconnected components of are uniquely determined, i.e. independent of the order of the separating pairs in which we do the splitting.
The decomposition leads to the triconnected component tree: There is a node for each triconnected component and each -connected separating pair of . There is an edge between triconnected component node and separating pair node , if .
-connected components.
We also need to further decompose -connected graphs along separating triples into -connected components. The split components of two separating triples might overlap and thus we cannot simply split along all separating triples. For example, in a -graph both sides form separating triples and we cannot split along both. For an efficient splitting procedure with respect to parallel computation see [42] or [12].
The decomposition again leads to a tree, the -connected component tree. In this tree we have vertices for the separating triples and for the -connected components. In addition, there is a vertex representing a -bond component for every edge from , where are part of a separating triple. Two vertices in the -connected component tree are adjacent if one of them corresponds to a separating triple and the other one to a -connected component or a -bond sharing vertices with the triple.
Complexity.
Graph reachability problems can be solved in nondeterministic logspace, . In undirected graphs, even in deterministic logspace, [36]. We have
| (13) |
In the following lemma, we list some known results along these lines.
Lemma 8.
Let be an undirected graph. The following problems can all be solved in .
-
1.
Compute the articulation points and the connected components of .
-
2.
When is -connected, compute the -connected separating pairs, the triconnected components, and the triconnected component tree of .
-
3.
When is -connected, compute the separating triples, the -connected components, and the -connected component tree of .
The component trees can have large depth. As we want to process them in a bottom-up fashion in logarithmic time, we need to identify long paths and treat them separately. Let be a rooted tree and let be a vertex in . Then is the subtree of rooted at . A child of is a large child if . A large child path in is a maximal path such that every vertex along the path is a large child of its parent.
Lemma 9 ([39]).
Let be a tree with nodes and be a simple path in . Then
-
the number of large child paths on is ,
-
the number of nodes on that are not large children is ,
-
all large child paths in can be computed in .
By the first two items in Lemma 9, the number of large child paths in is polynomially bounded in . Then the last item follows because we can compute the number of nodes in subtrees of in and hence, also in .
Structure theorems.
The reason why we are considering the above decompositions is that for -free, -free, and one-crossing-minor-free graphs, we end up in components that are planar or of bounded treewidth.
Theorem 10 ([4]).
Every -connected component of a -free graph is either planar or .
For -free graphs, we end up in planar components or a special constant size graph.
Theorem 11 ([44]).
Every -connected component of a -free graph is either the Wagner graph, which is the MΓΆbius ladder on vertices, or its -connected components are all planar.
For one-crossing-minor-free graphs, we get planar or bounded treewidth components.
Theorem 12 ([37]).
For every one-crossing graph there is a constant such that the -connected components of a -free graph are either planar or have treewidth .
2.4 Henneberg sequences
Laman graphs can be constructed iteratively via Henneberg extensions [21]. The starting point in a sequence of Henneberg extensions is a graph with two nodes connected by an edge. Let be the graph constructed so far. There are two ways to add a new node to :
-
A Henneberg extension of type connects with two arbitrary vertices of .
-
A Henneberg extension of type takes an existing edge in and replaces it with edges and , and connects to an arbitrary third vertex in .
Theorem 13 ([41]).
A graph is Laman iff it can be constructed by a sequence of Henneberg extensions that starts with an arbitrary edge .
Henneberg sequences can also be reversed in the following way.
Lemma 14 ([23, Lemma 2.8]).
Let be a Laman graph with and .
-
1.
If , then is Laman.
-
2.
If , then is Laman for some pair of neighbors of .
Using reversed Henneberg operations one can generalize Theorem 13: One can start the Henneberg sequence for a Laman graph with any two nodes and and edge , even if is not present in .
Lemma 15 ([18, Lemma 2]).
A Laman graph has a Henneberg construction that starts from edge , for any two nodes .
The proof for Lemma 15 roughly works by applying reversed Henneberg steps to the graph until we end up with the edge . We further generalize Lemma 15 by showing the existence of a Henneberg sequence that starts with a triangle on any three vertices that contain at least one edge in . To do so, we first make a technical observation for the case that all vertices not in have large degree.
Lemma 16.
Let be a Laman graph, , and such that every has . Then we have
-
,
-
,
-
is a connected graph.
Proof.
The sum of all node degrees of is at least . By the degree sum formula, we therefore have
| (14) |
Since , we conclude that
| (15) |
Since is Laman, we also have . This implies the first item.
To show the second item, let and . Let be the edges between and . Since the nodes in have degree , we have . We argue that , and hence .
The sum of all node degrees in is at least . By the degree sum formula, we therefore have
| (16) |
Since is Laman, we also have , and therefore
| (17) |
To argue that is connected, assume that there are two components in , say on nodes and , respectively. For each component we can make the same estimates as for above to show the second item. Hence, we would get that . But this contradicts the first item.
We use Lemma 16 to show that a Henneberg sequence for a Laman graph can start with a triangle on any three nodes, as long as there is at least one edge between the nodes in . This generalizes a result by Haas et al. [18, Lemma 3].
Lemma 17.
Let be a Laman graph and such that . Then there is a Henneberg sequence for that starts with triangle .
Proof.
We prove the claim by induction on . For the claim is trivially true since the only possibility for is to be exactly triangle . Let . Let vertex such that . Note that must exist because otherwise, when , for all , then by Lemma 16, but we have .
We remove by a reversed Henneberg step from Lemma 14. Let . The removal operation can only increase the number of edges within in . Thus, by the induction hypothesis, there is a Henneberg sequence for that starts with triangle . We extend the sequence by adding back to . Then the sequence produces .
The assumption in Lemma 17 is necessary: There are examples for a graph where and it is not possible to construct from triangle . In Section 5, we will consider the case where is -connected and is a separating triple. Then we can still get a useful statement about the starting point of a Henneberg sequence from Lemma 16 and 17.
Corollary 18.
Let be a -connected Laman graph with a separating triple and corresponding split graphs , where we have removed all virtual edges from the split graphs that are not edges in . Then there is a Henneberg sequence for that starts
-
either with triangle ,
-
or there is a split component, say , that is Laman and , and the sequence initially constructs .
Proof.
The claim follows from Lemma 17 when . So assume that . Like in the proof of Lemma 17, we remove vertices with by reversed Henneberg steps, as long as there are such vertices. In case this process introduces an edge within at some point, then it will stop with triangle as in the proof of Lemma 17. Otherwise, it will stop with a Laman graph with . By Lemma 16, graph is connected. Hence, can be obtained by reverse Henneberg steps from one of the split components , say . Now a Henneberg sequence for can be extended to a sequence for by adding the vertices of back that we removed above. Note that . Hence, adding the remaining vertices of will not introduce an edge within . Now we can add the rest of the vertices back that we removed above. This gives the desired Henneberg sequence for .
3 Rigid embeddings for planar graphs in
Streinu [40] and Haas et al. [18] showed that planar Laman graphs can be characterized by planar embeddings in the plane with certain geometric properties. We observe that this characterization can be verified efficiently in parallel. Moreover, the geometric properties can be used to compute an infinitesimally rigid embedding in .
Theorem 19.
Deciding whether a planar graph is Laman is in . Moreover, given a planar Laman graph , computing a planar infinitesimally rigid embedding for is in .
Due to the conference page limit, we omit the proof in the proceedings. It can be found in the full version of the paper [17].
4 Rigid embeddings for -free graphs in
Let be a -free graph. We want to check whether is Laman efficiently in parallel. By Lemma 6, we may assume that is -connected. By Theorem 10, when we decompose into -connected components, these components are either planar or . For planar components we can check if they are Laman by Theorem 19. Hence, what we need is a connection between the Laman properties of and its -connected components. This is established by the following lemma.
Lemma 20.
Let be a -connected graph with a separating pair and corresponding split graphs , where we have removed all virtual edges from the split graphs that are not edges in .
-
1.
If , then is Laman iff are Laman.
-
2.
If , then is Laman iff there exists one component, say , that is Laman, and are Laman.
Proof.
Let be Laman. By Lemma 15, there is a Henneberg construction for that starts with edge . Recall that this is independent of whether is an edge in . When a new vertex is added in the Henneberg sequence, it belongs to exactly one of the split graphs and the extension cannot interfere with some vertex from another split graph. Otherwise, the separating pair would not separate the split graphs from each other in .
-
1.
If , this gives us Henneberg sequences for all split graphs by subdividing the sequence for in its parts for , respectively. Hence, they are all Laman.
-
2.
If , it has been replaced by a type extension adding a vertex in exactly one split graph, say . Again we subdivide the Henneberg sequence for , and get sequences for and for . Therefore, they are all Laman.
For the backward direction, in the first case, we consider Henneberg constructions for that start with edge . Since the edge is present in all the components, it is never used in any of the Henneberg sequences. Hence, we can combine all the Henneberg sequences to a sequence for . Hence, is Laman.
The second case is similar. Since is not present in , the edge is used in the sequence for , but not in any of the sequences for . Hence, we can again combine all the Henneberg sequences to a sequence for . Hence, is Laman.
The above lemma motivates us to define an operation on 2-connected graphs, which we call Laman-split.
Definition 21 (Laman-split).
For a -connected graph with a separating pair , let be the split graphs obtained after splitting along , where we have removed all virtual edges that are not edges in . The Laman-split of along are the graphs , where for each ,
| (18) |
For a Laman graph, all split graphs in Definition 21 have either or edges by Lemma 20. Note that we define the Laman-split also for graphs that are not Laman. In this case, the split graphs can also have other numbers of edges. In such a case, , and hence , are trivially detected as not being Laman.
Recall that by Lemma 7, the standard splitting of -connected graphs in triconnected components is unique, i.e. independent of the order of the separating pairs we do the splitting. The following lemma shows when we apply Laman-splits to the components on the way, the resulting Laman components are unique as well.
Lemma 22.
Let be a -connected graph. Then is Laman iff there is a way to put the separating pair edges into the triconnected components of such that is in all but one of the components that contain and that the resulting components are all Laman.
Moreover, in case is Laman, this Laman decomposition is unique and can be computed in .
Proof.
Consider the standard recursive splitting procedure to compute the triconnected component tree of . When we have split along a separating pair , we can also compute the Laman-split that says in which split components edge should be put. Note that the recursive splitting is always done on the components computed by the standard splitting procedure. The Laman-split is a post-computation on these components that does not affect the recursive splitting. By the characterization given in Lemma 20, we conclude that is Laman iff all the components computed by Laman-splits are Laman.
It remains to argue about the uniqueness of the Laman decomposition. This property is crucial for our parallel algorithm to compute the decomposition. So assume that is a Laman graph. By Lemma 7, the triconnected components are unique. We argue that also the corresponding components we get from Laman-splits are uniquely determined. That is, whether a separating pair edge is present or not in a component is irrespective of the order of the decomposition.
This is trivial in case a separating pair is connected by an edge in . Then all components will have the edge as well by Lemma 20. We only have to argue for the case that is not connected by an edge in . In this case, the edge will be present in all but one of the components by Lemma 20. We argue that the component without edge is uniquely determined.
Consider the triconnected component tree . We argue via induction on the number of component nodes in . If has just one component node, then there is no separating pair and the claim is trivial.
In the inductive step, let have more than one component node. Let be a component node with a separating pair such that all other split components at are leafs in . In the leaf components is the only separating pair. Hence, it is uniquely defined whether the separating pair edge should be present in a leaf component or not, so that it has the right number of edges to be Laman. Therefore the same holds for the parent component by Lemma 20. Note also that the presence or absence of a separating pair edge in is not affected when is further split along a different separating pair.
Now we can prune the leaf components considered above from and get a tree with a smaller number of component nodes where we can apply the induction hypothesis.
For the complexity bound, we describe a parallel procedure to obtain the Laman components. First we compute all triconnected components in (Lemma 8). To determine where to put the separating pair edges, we do a Laman-split of , for every separating pair in parallel. That is, we treat each separating pair as the starting point of a Laman decomposition of . Thereby we will put the edges correctly in the respective components by the uniqueness property: For any triconnected component that contains , we add the separating pair edge to , if after Laman-split in the component that contains has edge .
Now we have all the tools to decide efficiently in parallel whether a given -free graph is Laman.
Theorem 23.
Given a -free graph , we can decide whether is Laman in .
Proof.
Given a 2-connected -free graph , we apply the algorithm from Lemma 22 to compute its Laman components. Here we might already detect that is not Laman when the Laman-split yields some component where the number of edges does not match the number according to Lemma 20. Otherwise, we have that is Laman iff all the components are Laman. Note that the components are planar graphs or subgraphs of by Theorem 10, because separating pair edges only replace virtual edges, and hence do not affect planarity. Thus, we can apply Theorem 19 for all components in parallel to check if they are all Laman. All the subroutines used are in .
The decision algorithm splits the graph along separating pairs until all components are planar and then checks that these components are Laman. We observed in Section 3 that we can also compute rigid embeddings for the planar components. To find a rigid embedding of , we now want to reassemble the embeddings of the components appropriately.
In Lemma 24, we make the assumption that the two nodes of a separating pair are mapped to the same pair of points in all the components, respectively. We show that then we directly have a rigid embedding for the whole graph .
Lemma 24.
Let be a Laman graph with a separating pair . Let be the Laman components obtained after a Laman-split of along . Let be infinitesimal rigid embeddings of the components such that
| (19) | ||||
| (20) | ||||
| (21) |
so that the common embedding is well defined. Then is an infinitesimally rigid embedding of .
Proof.
We prove the claim for . For larger , we can iterate the argument, combining two graphs in every round. By Lemma 20, edge is not contained in at most one of the components. Hence, we may assume that is contained in .
When we combine the rigidity matrices and as shown in Figure 2, we essentially get the rigidity matrix .
Vector is in the row-span of each, the upper part from and the lower part from . Therefore the only non-zero entries of can be at positions and .
By our assumption, edge is in and hence, there is a row in . Since has full rank, row is linearly independent from the other rows of .
-
If , then also and have a row , and the row is linearly independent of the other rows of as well.
-
If , then row is present only in , but not in and . Now, row might be linearly dependent on the rows of .
We have to show that the rows of matrix are linearly independent. Let denote the matrix consisting of all rows of except row . Recall that if row belongs to then it also belongs to . Hence, the rows of can be partitioned into and . Since and have full rank, the only way we can have a dependency in is that there is a non-zero vector that is in the row-span of and of as illustrated in Figure 2. Then would give a non-trivial linear combination of the rows of that produces the zero vector.
By the structure of as shown in Figure 2, the only non-zero entries of can be at positions and . We restrict our attention to these positions. Let and be the the part of and row at positions and , respectively,
| (22) | ||||
| (23) |
By assumption, we have . Let be the matrix consisting of the vectors for the three trivial motions, , on these four positions. That is
| (24) |
Because , and hence are a linear combination of the rows of the rigidity matrix, we have
| (25) |
Note that is matrix and since we assume that . Hence, the kernel of has dimension . It follows that must be a multiple of . Hence, vector is a multiple of the row-vector of . But recall that is in the row-span of and row-vector is linearly independent of . Hence, we must have . Therefore, the rigidity matrix has full rank.
To get a rigid embedding of a -free Laman graph, it now remains to show how to achieve the assumption of Lemma 24.
Theorem 25.
Given a -free Laman graph , we can compute an infinitesimally rigid embedding in .
Proof.
We follow the algorithm from Theorem 23 and apply Lemma 22 to decompose into planar Laman components . Then we compute infinitesimally rigid embeddings for the components in parallel by Theorem 19.
The vertices that belong to some separating pair occur in several components. We will construct new rigid embeddings that will map different copies of any such vertex to the same point, and leave all other vertices unchanged. Then will fulfill the assumption of Lemma 24, and will be a rigid embedding for .
For , let
| (26) |
For every where , we construct a pair of univariate polynomials that interpolates the points . That is, we compute the interpolation polynomials such that , for every . Then we replace the coordinates of such a vertex by in each component. That is, we define embeddings , for and ,
| (27) |
Note that a component can have several separating pair nodes and we replace their coordinates by different polynomials, respectively, but all in the same variable . The interpolation guarantees that agrees with for , for every ,
| (28) |
Consider the rigidity matrices , where some of the entries are polynomials in . Our goal is to find a value for such that all matrices have full rank. Let be a non-singular -square submatrix of and define as the corresponding submatrix of . Since and by (28), we have that is a non-zero polynomial. Hence, the product
| (29) |
is a non-zero polynomial too. For the degree of note that Therefore
| (30) |
Hence, for we get
| (31) |
It follows that we can find a such that . Now we define , for all . By construction, is still a rigid embedding of . Then is a rigid embedding for by Lemma 24.
For the complexity, note that polynomial interpolation and evaluation is in [13].
5 Deciding Lamanness of one-crossing-minor-free graphs in
In this section, we give an algorithm for deciding whether a -free graph is Laman, or even more general, whether a one-crossing-minor-free graph is Laman. We use Theorem 11, respectively Theorem 12, and further decompose the graph at separating triples into -connected components. We first show how the Laman property is preserved in the components. This can be seen as a generalization of Lemma 20 for separating pairs to separating triples.
Lemma 26.
Let be a -connected graph with a separating triple and corresponding split graphs , where we have removed all virtual edges from the split graphs that are not edges in . Let be the triangle edges and the actual edges of in .
Then is Laman iff there is a way to put each in all but one of , such that the resulting components are all Laman.
Proof.
The argument goes along the lines of the proof of Lemma 20, extended to triples.
Let be Laman. By Corollary 18, there is a Henneberg construction for that starts either with triangle , or with one component, say , where .
-
If the sequence starts with triangle , each triangle edge will be subdivided by a type step, adding a vertex in one split component, say . Hence, to get a Henneberg sequence for all the components, we have to add to all of them except .
-
If the sequence starts by constructing , the rest of the sequence constructs by extending from , but without using any triangle edges, because . Hence, we get Henneberg sequences for .
For the reverse direction, we have Henneberg sequences for all the components, where we have added the edges from to , as described in the lemma. If all components have a Henneberg sequence that starts with triangle , then we can combine them to one sequence for . If there is component, say with , that cannot be constructed from triangle , we start with the sequence for . By definition, the other components are , that have Henneberg sequences starting with triangle . These sequences will not use any triangle edge, and hence, we can attach them to the sequence for . This yields a sequence for .
When applying Lemma 26, we will consider different choices of triangle edges that can be added to make a component Laman. For three nodes in with no edge between them, there are three choices to add two edges between them. The following lemma states that when two of the choices make the graph Laman, then so does the third one.
Lemma 27.
Let be a graph and be three nodes in with no edge between them. If and are Laman then is also Laman.
Proof.
Assume that is not Laman. Then there must be a subset of vertices including at least two triple vertices such that
| (32) |
Then will also satisfy (32) in or , a contradiction.
Consider the -connected component tree of a -connected graph. Let components be leaf nodes in the tree that are attached via a common separating triple to parent component . The following lemma shows how to prune the leafs in the tree and replace them by a constant size gadget in such that the Laman property is maintained.
Lemma 28.
Let be a graph with a separating triple and corresponding split graphs , where we have removed all virtual edges that are not edges in . Assume that the graphs are planar or of bounded treewidth (even with all virtual edges). Then there is an -algorithm that
-
either computes a constant-size gadget graph on such that
is Laman is Laman (33) -
or determines directly that is not Laman.
Moreover, let be graph plus the edges missing from triangle . If is planar or of bounded treewidth , then is planar or of bounded treewidth , respectively.
Also, the choice of the gadget in the first item depends only on and , and not on .
Proof.
Let be the triangle edges on . Lemma 26 describes how to put the triangle edges of in split components for graph to be Laman. However, this does not uniquely determine the placement of the edges. Therefore we consider all possibilities to put the edges that are consistent with Lemma 26.
Let be the family of those sets for which there exist sets such that
-
1.
each edge in appears in all but one of and
-
2.
are all Laman.
By Lemma 26, we have
| (34) |
We claim that the family can be computed in . To see this observe that the number of possible tuples which satisfy item 1 above is . For all such tuples, we can check in parallel the Lamanness of , for all . Since are planar or of bounded treewidth (with all virtual edges), we can invoke the -algorithm from Theorem 19 or Theorem 5 to check whether is Laman.
If , then we can directly say that is not Laman. When , we construct an appropriate gadget. By (34), it suffices to construct a gadget such that
| (35) |
Recall that we need the construction of to depend only on , but to be independent of . For each family and , we construct a gadget graph such that for any , we have
| (36) |
If has a unique set , then we take . Note that by construction, each has the same cardinality. Thus, is always unique when or , and may be unique in case or . In the following, we consider all cases where contains at least two sets. For these, we construct gadgets shown in Table 1 that we put into . We use the notation . Clearly, the definition of the gadgets is up to vertex relabeling.
Below we explain why property (36) holds for each of the gadgets given in the table. The implication from left-to-right in (36) is given in the description of the gadgets in Figure 3. We argue for the reverse direction. Note that in both types of Henneberg steps, the quantity remains constant. Hence, all graphs which lead to the same gadget via Henneberg steps must have the same number of edges.
Case 1.
The only possible reverse Henneberg steps from the gadget in Figure 3 (a) is to remove the degree node and add a triangle edge. Since is restricted to be a subset of , the only possibility for the resulting graph is either or .
Case 2.
Starting from the gadget in Figure 3 (b), the first reverse Henneberg step has to remove because it has degree . Then the edge we have to add can only be . Then the second reverse Henneberg step can only be to remove . The edge we can add has to be either or . Thus, the resulting graph can only be either or .
Case 3.
From any two triangle edges we can construct the gadget in Figure 3 (c) as explained in the caption. Hence, starting from the gadget, we can reverse these steps and and end up in any two triangle edges.
Case 4.
The only possible reverse Henneberg steps from the gadget in Figure 3 (a) is to remove the degree node and add one of the triangle edges.
Case 5.
We show that is not a valid possibility. From the definition of , recall that we can have only when, say, and for . Similarly, we can have only when . Then from Lemma 27, is also a valid choice for to be Laman. Hence, should also be present in .
Finally, we argue the last part of the lemma about planarity and bounded treewidth. If component is planar, it can be embedded such that the triangle is one face of the embedding. Then we can put any of the gadgets from Figure 3 inside the triangle so that is planar.
If the component has bounded treewidth , consider a tree decomposition of of width . In a tree decomposition, every clique must be contained in a common bag [6, Lemma 2.1]. Thus, there must exist a bag that contains the triangle nodes, i.e., .
To get a tree decomposition of , we put an additional bag in that is adjacent to . Note that . Hence, the treewidth of is bounded by . The same holds for because treewidth does not increase when edges are removed.
Now we can prove our main Theorem.
Theorem 29.
Given a one-crossing-minor-free graph , we can decide whether is Laman in .
Proof.
We first decompose the input graph into triconnected components in by Lemma 8. Then, in parallel we further decompose each triconnected component into -connected components in by Lemma 8 and we identify the large child paths in the -connected component trees by Lemma 9. As is one-crossing-minor-free, the -connected components are planar or of bounded treewidth by Theorem 12.
By Lemma 22, we can decompose into components resulting from the triconnected components, such that is Laman iff all these components are Laman. Then for every such component , in parallel, we decide whether it is Laman as follows. We apply Lemma 26 in a bottom up fashion along the -connected component tree of . The leaf components in a -connected component tree contain a single separating triple and we can decide for what choices of triple edges the component is Laman by Theorem 19 or by Theorem 5. Then we put gadgets into the parent components according to Lemma 28. The gadgets we put into each separating triple in a parent component are only defined by the children components that are attached to the triple. In particular, we can put the gadgets into the parent components by working in parallel for every triple. Note that in case of overlapping separating triples, multi-edges could emerge in a parent component after we have added the gadgets. In this case, we detected that a parent component is not Laman. We continue this in a bottom-up fashion until we reach the root. Note that if we run this procedure as it is, the parallel complexity would be proportional to the depth of 4-connected component tree, which could be large.
Instead, when we reach a large child path along the way in component , we deviate from the bottom-up evaluation. Let the large child path consists of components , where is the parent component of in the -connected component tree. Let be the separating triple between components and , for , and be separating triple between component and its parent in the tree.
If the above procedure reaches some component of the large child path at a separating triple , for all , then we put a gadget as described above. Then each path component is planar or of bounded treewidth and has at most two triples that have not been replaced by a gadget. Therefore, for each path component in parallel we can apply Theorem 19 or Theorem 5 to check for what choices of edges in the two triples the component is Laman in . We describe how to merge the components into one component.
Merging two components.
Let be a graph with a separating triple . Let and be the components obtained when we split at . Let and be two other triples that are present in and , respectively. Suppose for each component , we have already computed for which choices of edges in triple it is Laman. Similarly, suppose we have computed for which choices of edges in triples and , component is Laman, and analogously for the edges in triples and , w.r.t. component . Then using the conditions in Lemma 26, we can find out for what edge choices in triples and , graph is Laman. This can be done in because there is only a polynomial number of possibilities of putting the edges of triple in components by the condition in Lemma 26, which can be checked in parallel. Moreover, the number of edge choices in and is constant.
Merging a path.
We apply the process of merging two components recursively in a binary tree fashion on . At the bottom layer, we start with applying the above merge procedure on pairs of neighboring path components at their common separating triple , in parallel. After merging two path components, we get a new component that again has two triples at each end and we have computed the edge choices in these two triples that make the component Laman.
When we have merged all path components into a single component, we find the choices of edges in the triple for which the split graph in that contains is Laman. Then we put the corresponding gadget in and carry on with the bottom up evaluation. Clearly, the above procedure for a large child path is in , as the merge step is in .
If it happens during the bottom up evaluation that a component or a large child path is not Laman for any choice of edges we can conclude that the graph is not Laman and stop the bottom-up evaluation.
Regarding the complexity, note that the -algorithms that we run as subroutines in the bottom up evaluation are the ones from Theorem 19 and 5. By Lemma 9, there are at most many large child paths on a path from a leaf node to the root in the -connected component tree Thus, the algorithm sequentially runs at most many algorithms as subroutines and therefore we end up in .
Open problems
For -free Laman graphs we can compute an infinitesimally rigid embedding efficiently in parallel. This is open for the case of one-crossing-minor-free graphs. In fact, it is open even for graphs of bounded treewidth. It is also open for -free Laman graphs, even though the -connected components are all planar. A problem there is that we do not have the analog of Lemma 24 for separating triples. The main open problem is still to show rigidity or minimal rigidity in D for arbitrary graphs in . Note that even for planar graphs, rigidity is not known to be in .
A seemingly even more challenging open problem is to consider infinitesimal rigidity in higher dimensions. The rigidity matrix in D can clearly be generalized to the rigidity matrix , for dimensions . The PIT problem for is in polynomial time because of the various characterizations we have for rigidity, like Theorems 2, 3, and 13. However, we do not have such characterizations even for . A derandomization in polynomial time of the PIT for is an open problem for decades. See also the exposition of Raz and Wigderson [35] on this topic.
References
- [1] Timothy G. Abbot. Generalizations of Kempeβs universality theorem. Masterβs thesis, Massachusetts Institute of Technology, 2008. Joint work with Reid W. Barton and Erik D. Demaine. URL: http://web.mit.edu/tabbott/www/papers/mthesis.pdf.
- [2] Zachary Abel, Erik D. Demaine, Martin L. Demaine, Sarah Eisenstat, Jayson Lynch, and Tao B. Schardl. Who needs crossings?: Noncrossing linkages are universal, and deciding (global) rigidity is hard. Journal of Computational Geometry, 16(1):378β452, 2025.
- [3] Rahul Arora, Ashu Gupta, Rohit Gurjar, and Raghunath Tewari. Derandomizing Isolation Lemma for -free and -free Bipartite Graphs. In 33rd Symposium on Theoretical Aspects of Computer Science (STACS), volume 47 of Leibniz International Proceedings in Informatics (LIPIcs), pages 10:1β10:15, 2016. doi:10.4230/LIPIcs.STACS.2016.10.
- [4] Takao Asano. An approach to the subgraph homeomorphism problem. Theoretical Computer Science, 38:249β267, 1985. doi:10.1016/0304-3975(85)90222-1.
- [5] Leonard Asimow and Ben Roth. The rigidity of graphs II. Journal of Mathematical Analysis and Applications, 68(1):171β190, 1979.
- [6] Hans L. Bodlaender. NC-algorithms for graphs with small treewidth. In Graph-Theoretic Concepts in Computer Science, pages 1β10. Springer, 1989. doi:10.1007/3-540-50728-0_32.
- [7] Erin Chambers and David Eppstein. Flows in one-crossing-minor-free graphs. In Algorithms and Computation, pages 241β252. Springer, 2010. doi:10.1007/978-3-642-17517-6_23.
- [8] Archit Chauhan, Samir Datta, Chetan Gupta, and Vimal Raj Sharma. The Even-Path Problem in Directed Single-Crossing-Minor-Free Graphs. In 49th International Symposium on Mathematical Foundations of Computer Science (MFCS), volume 306 of Leibniz International Proceedings in Informatics (LIPIcs), pages 43:1β43:16, 2024. doi:10.4230/LIPIcs.MFCS.2024.43.
- [9] Bruno Courcelle. The monadic second-order logic of graphs I. Information and Computation, 85:12β75, 1990.
- [10] Samir Datta, Prajakta Nimbhorkar, Thomas Thierauf, and Fabian Wagner. Graph Isomorphism for -free and -free graphs is in Log-space. In Foundations of Software Technology and Theoretical Computer Science (FSTTCS), volume 4 of Leibniz International Proceedings in Informatics (LIPIcs), pages 145β156, 2009. doi:10.4230/LIPIcs.FSTTCS.2009.2314.
- [11] Michael Elberfeld, Andreas Jakoby, and Till Tantau. Logspace versions of the theorems of Bodlaender and Courcelle. In 51st IEEE Symposium on Foundations of Computer Science (FOCS), pages 143β152, 2010. doi:10.1109/FOCS.2010.21.
- [12] David Eppstein and Vijay V. Vazirani. NC algorithms for computing a perfect matching and a maximum flow in one-crossing-minor-free graphs. SIAM Journal on Computing, 50(3):1014β1033, 2021. doi:10.1137/19M1256221.
- [13] Γmer EΗ§ecioΗ§lu, Efstratios Gallopoulos, and Γetin K. KoΓ§. A parallel method for fast and practical high-order Newton interpolation. BIT Numerical Mathematics, 30(2):268β288, 1990. doi:10.1007/bf02017348.
- [14] Stephen A. Fenner, Rohit Gurjar, and Thomas Thierauf. Bipartite perfect matching is in quasi-NC. SIAM Journal on Computing, 50(3):218β235, 2021. doi:10.1137/16M1097870.
- [15] Harold N. Gabow and Herbert H. Westermann. Forests, frames, and games: Algorithms for matroid sums and applications. Algorithmica, 7(1β6):465β497, 1992. doi:10.1007/BF01758774.
- [16] Herman Gluck. Almost all simply connected closed surfaces are rigid, volume 438 of Lecture Notes in Mathematics, pages 225β239. Springer, 1975.
- [17] Rohit Gurjar, Kilian Rothmund, and Thomas Thierauf. 2D Minimal Graph Rigidity is in NC for One-Crossing-Minor-Free Graphs. Technical Report TR25-103, Electronic Colloquium on Computational Complexity, 2025. URL: https://eccc.weizmann.ac.il/report/2025/103/.
- [18] Ruth Haas, David Orden, GΓΌnter Rote, Francisco Santos, Brigitte Servatius, Hermann Servatius, Diane Souvaine, Ileana Streinu, and Walter Whiteley. Planar minimally rigid graphs and pseudo-triangulations. Computational Geometry, 2005.
- [19] Philip Hall. On representatives of subsets. Journal of the London Mathematical Society, 10(37):26β30, 1935.
- [20] Bruce Hendrickson. Conditions for unique graph realizations. SIAM Journal on Computing, 21(1):65β84, 1992. doi:10.1137/0221008.
- [21] Lebrecht Henneberg. Die graphische Statik der starren Systeme. B. G. Teubner, 1911. URL: https://books.google.de/books?id=jAIIAAAAMAAJ.
- [22] John E. Hopcroft and Robert E. Tarjan. Finding the triconnected components of a graph. Technical Report TR 72 - 140, Cornell University, 1972.
- [23] Bill Jackson and Tibor JordΓ‘n. Connected rigidity matroids and unique realizations of graphs. Journal of Combinatorial Theory, Series B, 94(1):1β29, 2005. doi:10.1016/j.jctb.2004.11.002.
- [24] Pieter W. Kasteleyn. Graph theory and crystal physics, pages 43β110. Academic Press, 1967.
- [25] Samir Khuller. Coloring algorithms for -minor free graphs. Information Processing Letters, 34(4):203β208, 1990. doi:10.1016/0020-0190(90)90161-P.
- [26] Samir Khuller. Extending planar graph algorithms to -free graphs. Information and Computation, 84(1):13β25, 1990. doi:10.1016/0890-5401(90)90031-C.
- [27] Gerard Laman. On graphs and rigidity of plane skeletal structures. Journal of Engineering Mathematics, 4(4):331β340, 1970.
- [28] Charles H. C. Little. An extension of Kasteleynβs method of enumerating the 1-factors of planar graphs, volume 403 of Lecture Notes in Mathematics, pages 63β72. Springer, 1974.
- [29] LΓ‘szlΓ³ LovΓ‘sz. Graphs and Geometry, volume 65 of Colloquium Publications. American Mathematical Society, 2019.
- [30] LΓ‘szlΓ³ LovΓ‘sz and Y. Yemini. On generic rigidity in the plane. SIAM Journal on Algebraic Discrete Methods, 3(1):91β98, 1982. doi:10.1137/0603009.
- [31] Saunders Maclaine. A structural characterization of planar combinatorial graphs. Duke Mathematical Journal, 3(3):460β472, 1937.
- [32] Ketan Mulmuley. A fast parallel algorithm to compute the rank of a matrix over an arbitrary field. Combinatorica, 7(1):101β104, 1987. doi:10.1007/BF02579205.
- [33] Ketan Mulmuley, Umesh V. Vazirani, and Vijay V. Vazirani. Matching is as easy as matrix inversion. Combinatorica, 7(1):105β113, 1987. doi:10.1007/BF02579206.
- [34] Hilda Pollaczek-Geiringer. Γber die Gliederung ebener Fachwerke. ZAMM - Journal of Applied Mathematics and Mechanics, 7(1):58β72, 1927.
- [35] Orit E. Raz and Avi Wigderson. Subspace Arrangements, Graph Rigidity and Derandomization Through Submodular Optimization, pages 377β415. Springer, 2019.
- [36] Omer Reingold. Undirected connectivity in log-space. Journal of the ACM, 55(4), 2008. doi:10.1145/1391289.1391291.
- [37] Neil Robertson and Paul Seymour. Excluding a graph with one crossing. Graph Structure Theory, pages 669β675, 1993. doi:10.1090/conm/147/01206.
- [38] Jonathan Rollin, Lena Schlipf, and AndrΓ© Schulz. Recognizing Planar Laman Graphs. In 27th European Symposium on Algorithms (ESA), volume 144 of Leibniz International Proceedings in Informatics (LIPIcs), pages 79:1β79:12, 2019. doi:10.4230/LIPIcs.ESA.2019.79.
- [39] Simon Straub, Thomas Thierauf, and Fabian Wagner. Counting the number of perfect matchings in -free graphs. Theory of Computing Systems, 59(3):416β439, 2016. doi:10.1007/S00224-015-9645-1.
- [40] Ileana Streinu. A combinatorial approach to planar non-colliding robot arm motion planning. In 41st Annual Symposium on Foundations of Computer Science (FOCS), pages 443β453, 2000. doi:10.1109/SFCS.2000.892132.
- [41] Tiong-Seng Tay and Walter Whiteley. Generating isostatic frameworks. Structural Topology, 11:21β68, 1985.
- [42] Thomas Thierauf and Fabian Wagner. Reachability in -free Graphs and -free Graphs is in Unambiguous Logspace. Chicago Journal of Theoretical Computer Science, 2, 2014.
- [43] Vijay V. Vazirani. NC algorithms for computing the number of perfect matchings in -free graphs and related problems. Information and Computation, 80(2):152β164, 1989. doi:10.1016/0890-5401(89)90017-5.
- [44] Klaus Wagner. Γber eine Eigenschaft der ebenen Komplexe. Mathematische Annalen, 114(1):570β590, December 1937.