WorksComputer Science
Path Isolation and Reachability in Surface-Embedded Graphs with Restricted Cycle and Cut Structure
Abstract
We study the reachability problem in directed surface-embedded graphs under two structural restrictions, using isolating weight assignments. First, we consider graphs whose underlying undirected embeddings contain at most polynomially many simple surface non-separating cycles. We develop a polynomially bounded, logspace-computable skew-symmetric edge-weight assignment with nonzero circulation around every simple cycle. This yields an unambiguous logspace (UL) upper bound for directed reachability. The construction also gives an SPL upper bound for bipartite perfect matching in the corresponding undirected graph class. Second, for -genus directed graphs admitting a balanced hierarchical genus decomposition with crossing edges at every partition, we obtain an unambiguous -space bound for reachability. Our approach combines path-isolating weights for lower-genus subgraphs using polynomially bounded FKS hashing refinements at successive merging levels.
Introduction
In the reachability problem, given a graph , and two vertices and in , we need to find whether there exists a path from to . Deciding reachability between a pair of vertices is an important problem in complexity theory. Reachability in directed graphs precisely captures the complexity class nondeterministic logspace (NL). Also, the seminal result of Reingold [17] showed that reachability in an undirected graph characterises the class deterministic logspace (L). Whether these two classes are equal is a big open question in complexity theory. Unambiguous computation is a restricted version of nondeterministic computation. We know that in a nondeterministic computation, given any input, the answer is yes if there exists at least one accepting computation path and the answer is no if all computation paths reject. However, in an unambiguous computation, given any input, there is at most one accepting computation path. The input is accepted if exactly one computation path terminates in yes, and no if all the paths terminate in no. The class UL was first introduced formally by Buntrock et al. [5] and then studied in more detail by Álvarez and Jenner in Álvarez and Jenner (1993). Since the class UL lies between NL and L, resolving NL UL will be a big intermediate step toward the NL vs. L question. In 2000, Reinhardt and Allender [18] took the first step in this direction and proved that these classes are equal in a non-uniform computation model. In a later work, it was shown that if deterministic linear space functions cannot be computed by circuits of size , then NL = UL Allender et al. [1]. These results suggest that the classes might be equal unconditionally. Since directed reachability is a complete problem for NL, giving UL algorithm for reachability will prove that NL = UL. Although solving general directed reachability has been elusive so far, a lot of progress has been made in this direction by solving reachability in restricted classes of graphs, for example, using isolating weight assignment to establish an upper bound of UL for planar graphs, bounded genus graphs, logarithmic genus graphs, and free graphs, single crossing minor free graphs Bourke et al. [4]; Datta et al. [8]; Gupta et al. [14]; Datta et al. [9]; Arora et al. [3]; Datta et al. [10] and proving an L upper bound for bounded tree-width graphs Das et al. [6]. For the general case, Kalampally and Tewari showed that the problem can be solved by an unambiguous algorithm that takes space and polynomial time Kallampally and Tewari [16]. The result was subsequently improved by Prakriya and Melkebeek by reducing the space bound to van Melkebeek and Prakriya [21].
Perfect Matching is one of the problems that is closely related to the reachability problem. In the perfect matching problem, we are given an undirected graph, and the goal is to find a disjoint subset of edges of the graph that covers all the vertices of the graph. First polynomial time algorithm to solve this problem dates back to 1965 by Edmonds Edmonds (1965). However, the parallel complexity of this problem is not clear, i.e. whether there exists an efficient parallel algorithm (an NC algorithm) for the problem. Lovász took the first step towards this question and proved that the problem belongs to the class randomized (NC). Later, Mulmuley et al. also gave a randomized (NC) algorithm to solve the problem using the isolation lemma. In particular, they proved that if we can efficiently construct a polynomial-size weight assignment for the edges of a graph such that there exists a unique minimum weight perfect matching in the graph, then we can solve the problem efficiently by an NC algorithm. Allender et al. improved this result in Allender et al. [1] and proved that if we can construct such a weight function in logarithmic space, then the problem will belong to the class SPL, which is a subclass of NC. In the last few years, people have constructed such a weight assignment for various restricted classes of graphs Datta et al. [7, 8, 10]; Gupta et al. [15]. Recently, Fenner et al. and Svensson and Tarnawski gave a construction of weight functions of size -bits, proving that the problem can be solved deterministically by a quasi-NC algorithm in bipartite and general graphs, respectively Fenner et al. [12]; Svensson and Tarnawski [19]. As we see, if we can efficiently construct a weight assignment that isolates the path and perfect matching, then we can obtain the desired bound for both problems. In most of the previous results, people have constructed a single weight assignment for a class of graphs that isolates a path in the graphs of the class and a perfect matching in the corresponding undirected bipartite graphs. These weight functions satisfy two properties: they should be emph skew-symmetric, and they should give nonzero weight to all the cycles in the graphs. We will also construct such a weight function for a restricted graph class here.
In this work, we focus on directed graphs that can be embedded on surfaces. A cycle in a directed graph refers to a directed cycle and one in an undirected graph refers to an undirected cycle. A surface has genus if it can be obtained by attaching handles to a sphere. The genus of a graph is the minimum genus surface on which the graph can be embedded without any edge crossings (For example, planar graphs can be embedded on a surface of genus 0, i.e. a sphere, can be embedded on a surface of genus 1).
It is easy to see that any graph can be embedded on a surface of polynomially ordered (in the number of vertices) genus. Therefore, solving the problem for such kind of graphs has been another direction for making progress towards this question. If we consider the underlying undirected version of directed graphs embedded on surfaces, then the cycles in such a graph can be partitioned into two classes - surface separating cycles (SSC) and surface non-separating cycles (SNSC). It has been proved that for graphs that contain an arbitrary number of surface separating cycles and up to many topologically different surface non-separating cycles, both reachability and perfect matching can be isolated efficiently. The next step is to handle an arbitrary number of surface non-separating cycles. In this paper, we construct path-isolating as well as bipartite perfect matching-isolating weight assignments for a graph that has polynomial number of surface non-separating cycles.
We also investigate a complementary restriction for embedded directed graphs of genus : a hierarchical partition of the surface into lower-genus pieces with only crossing edges at every partition. Even when the pieces have complicated internal topology, the limited number of crossing edges bounds the number of competing minimum-weight paths after their weights have been isolated. An FKS hashing refinement at each merging level leads to an unambiguous -space bound. Thus, the two contributions use path isolation to handle different forms of structural restriction: the number of surface non-separating cycles and the width of genus partitions.
Our Results
We study two complementary families of surface-embedded graphs. For graphs with polynomially many surface non-separating cycles, we obtain the following reachability and bipartite perfect-matching bounds.
Theorem 1 In directed graphs embedded on surfaces that contain at most a polynomial number of surface non-separating cycles, the reachability problem can be solved in unambiguous logspace (UL).
We complement this result by establishing an analogous complexity bound for the bipartite perfect matching problem.
Theorem 2 In undirected bipartite graphs embedded on surfaces that contain at most a polynomial number of surface non-separating cycles, the bipartite perfect matching problem lies in SPL.
For -genus graphs admitting a balanced hierarchical decomposition with logarithmically many crossing edges at every internal partition, we obtain a further reachability bound.
Theorem 3 In directed graphs embedded on surfaces that contain crossing edges between any 2 partitions of its genus decomposition, the reachability problem can be solved unambiguously in space.
Organization. Section 3 motivates the cycle restriction. Section 4 establishes the PolySNSC reachability result, followed immediately by the bipartite perfect-matching consequence in Section 5. The final main section establishes the genus-decomposition reachability bound.
Preliminaries
Given a directed graph , a weight assignment (alternatively function) is a function that assigns integer weights to all the edges of . Consequently, the weight of a path in is defined as the sum of the weights of edges that form the path. Graph is said to be min-unique with respect to a weight function , if between every pair of vertices, there exists at most one minimum weight path. The weight function is called a min-isolating (or path-isolating) weight function. A weight function is called skew-symmetric if for all edges , , where . A weight function is called polynomially bounded (or of polynomial size) if it assigns -bit weights to all the edges of a graph. One of the ways to obtain isolation of paths and perfect matchings in a directed graph is by designing a skew-symmetric weight function that assigns non-zero weights to all the cycles in the graph.
We know that every graph can be embedded on a surface such that no two edges of the graph intersect each other. The genus of a graph is defined as the minimum genus surface on which it can be embedded without intersecting its edges. A surface having genus has holes in it. Cycles in graphs embedded on a surface of genus can be divided into two classes : (i) surface separating cycles (SSCs) and, (ii) surface non-separating cycles (SNSCs).
Definition 1 Let be a graph embedded on a surface . A cycle is surface-separating if it separates , i.e., is disconnected. Otherwise, is surface non-separating. Alternatively, a cycle in the graph is called surface-separating if removing the cycle from the surface splits the surface into two disconnected regions and it is called non-separating if cutting along the cycle does not disconnect the surface and reduces the genus by 1.
As the name suggests, a cycle in a surface embedded graph is called a surface non-separating cycle if cutting along the cycle does not divide the surface into two parts and vice versa (see fig. 1). SNSCs are important because they are related to the genus of graphs. The genus of a graph is at most the number of disjoint SNSCs in , such that the surface does not divide even after cutting it along all the cycles together. In other words, if a graph is embedded on a minimum possible genus surface, then the genus of the graph (and surface) will be equal to the number of SNSCs present in the graph such that cutting the surface along those cycles does not separate the surface. The importance of the class of graphs with poly-many SNSCs is explained in detail in Section 3. Our objective therefore is to construct a weight function for the above class of graphs.
Definition 2 Let PolySNSC be the class of surface-embedded directed graphs such that they contain at most polynomially many surface non-separating cycles.
For a nondeterministic Turing machine , let and denote the number of accepting computations and the number of rejecting computations, respectively, on an input . Denote .
Definition 3 A language is in SPL if there exists a logspace bounded nondeterministic machine so that for all inputs , and if and only if .
Complexity class SPL was initially studied by Allender et al. in Allender et al. [1]. With respect to matching, we define the following problem - BPMDecision: Given a bipartite graph , checking if has a perfect matching Datta et al. [8]. Although the weight function constructed by Gupta et al. [14] isolates paths in genus graphs, it is worth noticing that it is a skew-symmetric weight function that gives non-zero weights to all surface separating cycles (but not necessarily to any surface non-separating cycles) in graphs of arbitrary genus. We reuse their weight function as part of our final weight function and encapsulate their result in the following lemma.

Figure 1. Surface separating cycles (marked in red) and surface non-separating cycle (denoted in blue). Figure Source
Lemma 1 Gupta et al. [14] Let be a directed graph given along with its embedding on a surface. There exists a logspace-computable polynomial-size skew-symmetric weight function that gives nonzero weight to every surface-separating cycle in .
We now state the hashing result by Fredman, Komlós and Szemerédi that we use later. We refer to it as FKS Hashing Lemma in this text.
Lemma 2 Fredman et al. [13] Let be a set of -bit integers. Then there exists an bit prime number so that for all , .
We will use the following Theorem from Reinhardt and Allender Reinhardt and Allender [18] to prove Theorem 1.
Theorem 4 Reinhardt and Allender [18] There is a nondeterministic logspace Turing machine that takes as input where is a directed graph on vertices, and are vertices in and is an -bit edge weight function and outputs the following along a unique computation path while all other computation paths halt and reject:
Not Min-unique if is not min-unique with respect to ,
Yes, if is min-unique with respect to and there is a path from to in , and
No, if is min-unique with respect to and there is no path from to in $G.
Motivation
The class of graphs that contain polynomially many SNSCs is of particular interest due to its intricate relationship with graph embeddings and surface topology. Surface non-separating cycles are closely tied to the genus of a graph (or equivalently, the embedding surface). As the genus increases, more complex graphs can be embedded, and in fact, any graph can be embedded on a surface of polynomial genus. Interestingly, we observe that graphs with poly-many SNSCs can still exhibit very high genus, say of . Conversely, there exist graphs of low genus that nevertheless contain exponentially many SNSCs. This demonstrates that the class PolySNSC is neither a strict superset nor a strict subset of the classes for which polynomial-size path-isolating weight functions are currently known. Consequently, identifying such a weight function for this class becomes a compelling and nontrivial direction. Below we give an example of a graph that has a very high genus but only polynomially many SNSCs.
Constructing a graph with high genus having poly-many SNSCs
Let us assume we have copies of the graph , namely graphs , where each copy is embedded separately on a genus 1 surface (i.e., a torus). Let us assume that contains vertices . 1-clique sum is a special version of -clique sum that is obtained by gluing two graphs together at a single vertex. This is done by selecting one vertex each from two separate graphs and identifying them as one in the resultant graph, keeping all edges incident to both vertices. Now we repeatedly take 1-clique sum of all the 's on . Let be the final graph thus constructed. We have given an informal proof that the genus of is and it contains only polynomially many SNSCs. We will prove it for the case when , and the same argument can be extended for arbitrary . We have and each embedded on a torus. We will prove that the genus of is 2. For the sake of contradiction, assume that can be embedded on a surface of genus 1.
Definition 4 For a graph embedded in an orientable or non-orientable closed surface , the embedding is called a 2-cell embedding or a cellular embedding where every face is homeomorphic to an open disk, i.e., each face is connected, and the boundary of each face is a closed walk in the graph.
The subgraph of induced by the vertices of is a non-planar graph, say . The embedding of on the surface will be a 2-cell embedding. No matter how we embed this subgraph on , each face in the embedding will be homeomorphic to an open disc. Notice that the remaining subgraph of , i.e., , formed by removing only the edges, is also non-planar. Therefore, it cannot be embedded inside any face of , hence contradicting the assumption. This proves that cannot be embedded on the surface of genus 1. Similar argument can be extended for arbitrary .
We now show that the number of SNSCs in this graph is linear in . Let us consider a cycle starting from and ending at some and covering . No vertex can form a cycle containing another vertex , since there is only a single way to traverse between them, through . has to be visited in any path going from to . While completing the cycle back to , has to be visited again, as there does not exist any other way to connect them. But a unique vertex cannot be visited twice in a cycle. Hence, each can have at most 12 SNSCs. If we consider to be of linear genus, i.e., if , then the total number of surface non-separating cycles is at most . Thus is a graph with high genus (of order linear in ), yet having poly-many SNSCs.
Path isolation and reachability in PolySNSC
Let us consider a directed acyclic graph (DAG) and its corresponding underlying undirected graph, . Suppose the number of directed SNSCs in is . We know that reachability in is NL-complete because reachability in a DAG belongs to the class NL and is also NL-hard. On the other hand, can contain exponentially many undirected cycles. Therefore, putting a polynomial bound on the number of directed cycles does not imply a polynomial bound on the number of undirected cycles.
We briefly explain why constructing a skew-symmetric weight function that assigns non-zero weights to all the cycles in a graph is enough to isolate paths in that graph.
Proposition 1 For a class of directed graphs, if there exists a skew-symmetric weight function that gives non-zero weight to all the cycles in graphs of that class, then the weight function is path-isolating for that class of directed graphs.
Proof: Let be a skew-symmetric weight function that gives nonzero weights to all the cycles in a directed graph . Let us assume there are two different paths and , from to that have the same minimum weight. Now there are two cases, either they intersect or they do not intersect. Let us first assume that they do not intersect. Let us construct a graph , that is obtained from by only reversing the direction of the edges along path . Let us call that path in . Let be simple cycle formed by paths and in . We know that . Since is skew-symmetric, we have . This implies that . Since and are equal weight we can conclude that , which contradicts the assumption. Similarly, when and intersect, we can repeat the argument by considering the two sub-paths of and that start from and end at their first intersection point. □
Deciding reachability in PolySNSC
Theorem 5 Let be a -genus directed graph containing polynomially many simple surface non-separating cycles. Then there exists an -bit skew-symmetric weight function computable in logarithmic space that assigns non-zero weights to all the surface non-separating cycles in .
Proof: Let be the set of many surface non-separating cycles, , for some constant . If for any is not a directed cycle in then we do not care about it because the goal is to give nonzero weights to all the cycles. Therefore assume each is directed cycle such consists of two paths, namely from to and from to , respectively. Let us index all the edges in the graph as . We define a skew-symmetric weight function which assigns to edge , i.e. . Weights of paths and are defined as,
Let be the path obtained by reversing the edges along path . Let . We can see that every path gets a different weight with respect to , but the weight of a path is exponential. Since the cardinality of is , from Lemma 2, we know that there exists an -bit prime , such that with respect to the weight function , each path in gets a different weight. here is of polynomial size.
Notice that, since each path in gets a different weight, we can conclude that each get a nonzero weight with respect to . Also, from Lemma 1, we know that each surface separating cycle in gets a nonzero weight with respect to a skew-symmetric weight function . Therefore, taking a linear combination of these two weight functions, each cycle in the graph will now have zero weight with respect to the new weight function. In particular, we define the final weigh function as follows,
Since both and are skew-symmetric, is also skew-symmetric. This settles the proof. □
Corollary 1. Deciding reachability in PolySNSC is in UL.
Proof of theorem 1: Given directed graph on vertices and 2 vertices and , we iterate over all primes and for each of these primes, the weight function is computed according to Theorem 5. Thereby using Theorem 4, we verify if is min-unique with respect to . If yes, we check if is reachable from . If is not min-unique with respect to , then we move to the next prime. The existence of such a prime with respect to which is min-unique is guaranteed by Lemma 2. Hence, along a unique computation path, we get a Yes or a No answer depending on whether is reachable from or not respectively, while all other computation paths halt and reject. Since all the computation happens in logspace, this establishes the UL bound and settles the proof of Theorem 1.
Now, consider a graph having many undirected cycles. We show that this implies that the number of directed cycles is bounded polynomially in for any directed version of , say .
Theorem 6 For an undirected -genus graph having polynomially many surface non-separating cycles, there exists an -bit weight function computable in logarithmic space that assigns non-zero weights to all the surface non-separating cycles in . Moreover, for every graph , the minimum weight path in with respect to is unique.
Proof: Let be the number of undirected simple SNSC in (each undirected cycle is a closed simple sequence of distinct vertices and edges). We create a directed graph by replacing every undirected edge in with two directed edges in opposite directions. It is clear that each undirected simple cycle produces exactly two distinct simple directed cycles in - one following the edges of in one direction and the other following edges in the opposite direction. Let us denote one of those directions as clockwise and the other as counterclockwise. Then each undirected cycle contributes one clockwise directed simple cycle and one counterclockwise directed simple cycle. While considering clockwise orientation for every undirected cycle, the number of directed simple cycles oriented clockwise thus formed in is . Similarly, the number of counterclockwise oriented directed simple cycles in also equals , and the total number of directed cycles in is (polynomial in , since ).
Given the -genus graph having many cycles, let be the set of paths that form these cycles. We now apply Theorem 5 on the directed graph to get a -bit weight function that assigns non-zero weights to all the SNSCs in . In the first stage, each edge is assigned with respect to which, each path in get a different weight. In the second stage, the FKS Hashing scheme is used to compute an bit weight function with respect to which only one among the many paths of the first stage gets the minimum weight value. Applying FKS Hashing Lemma is possible because the number of directed cycles is still polynomial in , thereby also polynomial in . Thus, with respect to an bit weight function created according, is min-unique. Combining the above argument with Proposition 1, if there exists a skew-symmetric weight function that is path-isolating for , then for the underlying undirected graph of , there exists some -bit weight function , with respect to which, the minimum weight path in is unique. This concludes the proof of Theorem 6.
Isolating bipartite perfect matchings in PolySNSC
Definition 5 Tewari and Vinodchandran [20] Given an undirected graph , let be the set of all directed graphs , such that the underlying undirected graph of is . For a class of undirected graphs , define .
Theorem 7 Tewari and Vinodchandran [20] Let be a class of directed graphs and let be an edge weight function defined for every such that is skew-symmetric and for any cycle , . Let be a class of undirected bipartite graphs, such that . Then we can construct a weight function in log-space, such that for every graph , the minimum weight perfect matching in with respect to is unique.
Theorem 8 For the class of undirected bipartite graph with polynomially many SNSCs, there exists an -bit weight function computable in logarithmic space that assigns non-zero weights to all the surface non-separating cycles in such that with respect to , for every graph , the minimum weight perfect matching is unique.
Proof: Let be the directed version of the underlying undirected bipartite graph with being the bipartition and all the edges are directed from to . For two perfect matchings and in , we define . The weight function is the same as the weight function derived in the previous subsection for isolating minimum weight unique paths.
Lemma 3 For a directed bipartite graph , there exists at most one minimum weight perfect matching in with respect to the weight function .
Proof of lemma 3: Let us assume that and are two minimum weight perfect matching in . The set of edges in forms vertex-disjoint cycles, say , as they contain edges which are either in or in but not both. are either in or in but not both. Note that any cycle formed thus contain even number of edges alternating between and and all edges in this cycle are directed from to .
Let be the set of edges in and respectively for a cycle . We see that for some cycle . Otherwise, without loss of generality, if , then a new perfect matching can be formed having strictly lesser weight. This is a contradiction to the assumption that is a minimum weight perfect matching.
Now consider another graph which is same as but the direction of edges in are reversed. Let be the corresponding matchings to such that the underlying undirected edges of and are the same as that of and . Let be the set of vertex disjoint cycles formed from the edges in and be the edges in respectively in a cycle .
We have seen that , for all . The set of edges equals and the set of edges equals the reversed set of edges . Since is skew-symmetric, combining the previous assertion that , we get,
Therefore,
It is known that , like , assigns non-zero weights to all the SNSCs in . Therefore, and this is a contradiction. Thus, there exists at most one minimum weight perfect matching in with respect to . Note that, since the edges in are reversed they have a direction from to whereas edges in are from to . Therefore, the cycles that were formed are directed cycles in . □
We also know from the proof of Theorem 6 that if the number of SNSCs in the class of undirected bipartite graphs is polynomial in , then the number of directed cycles in the corresponding directed version of the graphs, including cycles oriented both clockwise and anti-clockwise, is also bounded polynomially in .
For the class of directed graphs , there exists a skew-symmetric weight function , that gives non-zero weights to all the cycles in any graph . Then using Theorem 7, we can say that for the class of undirected bipartite graph , another weight function, say , that can be constructed in logspace, such that for every , if there exists a matching, the minimum weight perfect matching in with respect to is unique. Thus, we see that for an undirected -genus bipartite graph , with respect to the weight function , if there is a perfect matching in , the minimum weight perfect matching in is unique. This finishes the proof of Theorem 8. □
Lemma 4 Datta et al. [8] For any weighted graph assume that the minimum weight perfect matching in is unique and also for any subset of edges , the minimum weight perfect matching in is also unique. Then deciding if has a perfect matching is in SPL.
Corollary 2 BPMDecision in PolySNSC is in SPL.
Proof of theorem 2: We have the weight function from theorem 8, according to which if there exists a matching in , then the minimum weight perfect matching in is unique. Then by simply applying Lemma 4 for the weighted graph , the problem of deciding if has a perfect matching lies in SPL. This completes the proof of Theorem 2. □
Reachability via logarithmic-width genus decompositions
Graphs embedded on large genus surfaces may have different types of interactions among all their handles. We study these interactions by looking at potentially large genus graphs with genus separating partition, that divide the underlying surface on which the graph is embedded, into two sub-surfaces with only a small number of graph edges crossing the partition, referred here as crossing edges.
The class of -genus graphs admitting partitions with at most crossing edges gives an intermediate class between low genus graphs and unrestricted high genus graphs. This restriction limits the amount of connections between subgraphs and different groups of handles, while allowing either side to have considerable topological complexity. The subgraphs on either side of the partition may individually have large genus, exponentially many paths, and exponentially many surface non-separating cycles. Nevertheless, the number of edges through which a path can move between the two subgraphs is . Thus, the graph can be topologically complicated within its individual regions but has a comparatively simple interaction structure between those regions.
The significance of this structural restriction becomes apparent in the context of path isolation. If the two subgraphs induced by a partition are individually min-unique with respect to positive edge weights, then the number of minimum weight paths between any pair of vertices in their union is bounded by the number of crossing edge subsets. Consequently, only polynomially many candidate minimum paths remain, allowing a polynomially bounded FKS hashing refinement to establish min-uniqueness across the partition.
This suggests a decomposition based approach to reachability in high genus graphs, in which the difficulty of isolating paths is governed not solely by the number of handles or surface non-separating cycles, but also by the interaction structure between subgraphs. In particular, logarithmic crossing edge width provides a natural structural parameter for investigating graph classes that may contain graphs of large genus while still admitting efficient path isolation procedures.
The crossing edges consequently help us construct a path isolating weight assignment for this class of graphs and subsequently establish a unambiguous space bound on its reachability question. When two already isolated -genus graphs are joined across edges, the number of new surface non-separating cycles relevant to breaking ties between preliminary minimum paths is also polynomial.
Genus Partitions and Crossing Edges
In this section, we define genus partition of a graph and its corresponding crossing edges between the subgraphs of the decomposition of a -genus directed graph embedded in a polygonal schema having sides. Let be a directed graph embedded on an orientable surface by an embedding .
Definition 6 (Genus Partition) A genus partition of is a separating simple closed curve , disjoint from the vertices of , such that divides into two connected sub-surfaces of genus and , such that .
intersects the embedding of every edge transversely at most once. The curve induces a vertex partition .
Definition 7 (Crossing Edges) Given a genus partition , an edge is a crossing edge if its endpoints belong to different parts of the induced vertex partition. The set of crossing edges is
where denotes the set of directed edges from to .
The crossing edge width or the number of edges crossing is . We call a partition logarithmic-width if for a fixed constant . A hierarchical genus partition is uniformly logarithmic-width if this condition holds at every internal node of its decomposition tree. This genus partition restriction is relevant when obtaining min-isolating weights for the two decomposing subgraphs of a graph while constructing the desired genus decomposition. Suppose, initially, that , . The recursion has merging levels.
Let be an -vertex directed graph embedded on an orientable surface of genus . Let be a genus-separating curve that divides the surface into 2 -genus sub-surfaces and induces a vertex partition . Denote the induced subgraphs by and . The set of crossing edges is such that or . Suppose , for some constant . For a positive integer edge-weight function , define . A graph is min-unique with respect to if , for every ordered pair .
Reachability bound and proof outline
In this section, we study reachability in directed -graphs embedded on surfaces that have an crossing edges at every level of balanced binary decomposition of the surface in which the graph is embedded. The sub-surfaces containing subgraphs are decomposed recursively until each leaf corresponds to a 1-genus piece. This decomposition-based bound is stated as Theorem 3 in Section 1.1 and proved below.
Isolating paths in -genus graphs with crossing edges
We adapt the key lemma from Kallampally and Tewari [16] that adds bits in each round for our case. Our modification replaces their path length doubling method with a genus doubling method. Instead of extending isolation from paths of length to , we extend it from two already isolated -genus pieces to their -genus union.
We prove Theorem 3 in three parts. In the first part, we prove the Crossing Edges Merging Lemma that given two min-unique subgraphs and crossing edges between them, there exist only polynomially many competing minimum paths in the union of the subgraphs. In the next step, we prove the Genus Doubling Isolation Theorem and show that by using only one -bit FKS refinement, we can get a minimum unique path at that level of merging subgraphs. Finally, in the last part, we construct the Recursive Level Isolation by iterating over levels of decomposition and establish the bound mentioned in Theorem 3.
Let be a directed graph over vertices with a vertex partition and crossing edge set , such that and .
Lemma 5 (Crossing Edges Merging Lemma) Let be a positive edge weight function such that both induced subgraphs and are min-unique with respect to . Then, for every ordered pair of vertices , . In particular, if , then . Consequently, the total number of minimum weight paths over all ordered vertex pairs is at most .
Proof: Let . Since is positive, every minimum weight path is simple. Therefore, every such path traverses each crossing edge at most once. For any minimum weight path , we define as those crossing edges that are in path , . We first establish the following claim.
Claim 1 For any two minimum weight paths and , if then .
Proof of claim 1: Suppose . We show that the crossing edges occur in the same order along and . Let denote the minimum weight of a directed path. Since every prefix of a minimum weight path is also minimum weight, if crossing edge occurs before crossing edge on a minimum weight path, then , where is the trailing vertex in the directed edge . The inequality is strict because all edge weights are positive. Thus, the order of crossing edges on a minimum weight path is determined uniquely by the distances of their tail vertices from . Consequently, and must traverse the crossing edges in the same order.
Say, and . Since the crossing edges occur in the same order, and have the same endpoints and lie entirely within the same induced subgraph or . Moreover, each and is a minimum weight path between its endpoints within that subgraph. Otherwise, replacing it with a lower weight path would produce a lower weight - walk, contradicting the minimality of or . Since both induced subgraphs are min-unique, for every . Therefore, . This establishes the claim.
Since a simple path traverses each crossing edge at most once, the number of possible crossing edge subsets is bounded by , which is polynomial in the input size for polynomially bounded genus. has at most subsets. Thus, . When , . Summing over all ordered vertex pairs gives
Theorem 9 (Genus Doubling Isolation Theorem). Let be an -vertex directed graph embedded on an orientable surface of genus , and let be a genus partition dividing the surface into two -genus subsurfaces. Let be the corresponding induced subgraphs, and let denote the crossing edge set satisfying , for a fixed constant . Suppose there exist positive integer edge-weight functions and such that both and are min-unique with respect to and , respectively. Assume further that for some . Then there exists a positive integer edge-weight function such that:
is min-unique with respect to .
Every edge weight can be represented using at most bits.
is computable in space . In particular, it is logspace computable when and the child weights are logspace computable.
Proof: We construct the desired weight function in three steps. In the first step, we construct the preliminary weight function as follows:
By assumption, and are min-unique under the restrictions of . Although need not be min-unique under , Lemma 5 implies that
Let . Then . Thus, leaves only polynomially many minimum weight paths across all vertex pairs.
In the next step, we apply FKS hashing on these polynomially many min-weight paths. Let be a fixed ordering of the directed edges. Define an exponential edge-weight function as . For a simple path , define
Because the paths in are simple, distinct paths have distinct sets of directed edges. Therefore, if , then . Each value of has at most bits. Since for a simple directed graph, and , lemma 2 guarantees the existence of a prime having bits such that
Define
Therefore, for any two distinct paths ,
Thus, distinguishes every pair of distinct paths in . While combining the preliminary weight with the FKS weight, we choose of some large value so that the component of the weight from the previous round gets more priority than the FKS component. Say . Then, we define the final edge-weight function as,
Now we show that is min-unique under . Fix any two vertices , and let and be two simple directed paths. Since a simple path has at most edges and the FKS weight is less than the prime , , we have
Therefore, when , the integrality of gives . Hence,
Conversely, if , then . In particular, every minimum -weight path must also be a minimum -weight path. Now suppose, towards a contradiction, that are distinct minimum -weight paths. Both paths must belong to . Therefore, . Because and , . Hence,
This contradicts the assumption that have equal minimum weight . Thus, for every , . Therefore is min-unique with respect to . Since , . Also for every edge, . Therefore, , hence requires bits. Given and the child weights, the function can be evaluated in space. This finishes the proof of Theorem 9.
We observe that after the subgraphs have been isolated, complexity of merging the paths depend on the cut size over the partition and not directly on the total genus. Now we combine the weights over all stages. We extend Theorem 9 recursively to obtain a min-isolating weight function for directed -genus graphs. The construction uses Lemma 5 and a single FKS hashing at each level by sharing the same prime for merging at that level.
Corollary 3 (Recursive Level Isolation). Let be an -vertex directed graph embedded on an orientable surface of genus . Suppose has a binary genus logspace decomposition of depth , where every internal node has two children , with , and crossing edge set satisfying for some fixed constant . If each leaf graph has a positive, logspace computable, -bit min-isolating weight function , then admits a min-isolating weight function using bits per edge.
Proof of theorem 3: Suppose every subgraph at level is min-unique under . Let the nodes at level be . For each , define the preliminary weight by retaining on the two child subgraphs and assigning weight 1 to their crossing edges. Let
By Lemma 5, . Therefore, . Since the vertex sets at level are disjoint,
Consequently,
Thus, there are polynomially many preliminary minimum paths across all merges at level . Index the edges of as . By the FKS Hashing Lemma, there exists a polynomially bounded prime with respect to which distinguishes all distinct nontrivial paths in this collection. Hence, one -bit prime suffices for every merge at level .
In the next step, we construct the recursive weight assignment. For every node at level , define
Choose a polynomially bounded integer satisfying for every level . The same can be used throughout the construction. Let us define the weight function for an intermediate step , . As shown in theorem 9, factor ensures that weight takes precedence over the hash contribution. Thus, every minimum path is a minimum path. Since distinguishes all distinct minimum paths, makes every th subgraph min-unique. Applying induction, isolate all subgraphs at their respective levels. Thus, is min-unique with respect to .
In the last step, we calculate the size of the final weight. Let denote the maximum number of bits required to represent an edge weight under . Since and are polynomially bounded, we have . The leaf subgraph requires bit weights. Therefore, . Since the decomposition has depth of , the final weight requires a total of bits. Thus, each genus doubling stage adds only bits. This completes the proof of Theorem 3.
Moreover, directed reachability in can be decided by a polynomial time unambiguous algorithm using space. At each level , we enumerate the candidate primes in increasing order and use the min-uniqueness testing algorithm in Kallampally and Tewari [16] to select the prime making every level subgraph min-unique.
Theorem 9 provides an unambiguous min-uniqueness test for a bit weight function in space. Storing the selected primes , require bits altogether. Given these primes, the final edge weights can be evaluated in space. Hence, the total space required for weight construction and min-uniqueness testing is . Applying the weighted min-unique reachability algorithm gives an unambiguous algorithm using the same space bound. Therefore, reachability in graphs with crossing edges . This establishes the space bound of Theorem 3.
AI Disclosure
We used GPT 6.1 Plus to assist with proof ideas, writing parts of the paper and reviewing drafts and statements of the work. The tool materially affected section 6. We verified the correctness and originality of all content, including references.
Acknowledgements
This work was supported in part by the PM ECRG Grant, India (Grant No. ANRF/ECRG/2024/004480/ENS), and the Faculty Initiation Grant (No. 101027), IIT Roorkee, awarded to Chetan Gupta.
References
- [1]E. Allender, K. Reinhardt, and S. Zhou. Isolation, matching, and counting: Uniform and nonuniform upper bounds. Journal of Computer and System Sciences, 59(2):164–181, 1999. doi: 10.1006/jcss.1999.1646. URL https://doi.org/10.1006/jcss.1999.1646.
- [3]R. Arora, A. Gupta, R. Gurjar, and R. Tewari. Derandomizing isolation lemma for K₃,₃-free and K₅-free bipartite graphs. In 33rd Symposium on Theoretical Aspects of Computer Science (STACS 2016), volume 47 of Leibniz International Proceedings in Informatics (LIPIcs), pages 10:1–10:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi: 10.4230/LIPIcs.STACS.2016.10. URL https://doi.org/10.4230/LIPIcs.STACS.2016.10.
- [4]C. Bourke, R. Tewari, and N. V. Vinodchandran. Directed planar reachability is in unambiguous log-space. ACM Transactions on Computation Theory, 1(1):4:1–4:17, 2009. doi: 10.1145/1490270.1490274. URL https://doi.org/10.1145/1490270.1490274.
- [5]G. Buntrock, B. Jenner, K.-J. Lange, and P. Rossmanith. Unambiguity and fewness for logarithmic space. In Fundamentals of Computation Theory, volume 529 of Lecture Notes in Computer Science, pages 168–179. Springer, 1991. doi: 10.1007/3-540-54458-5_61. URL https://doi.org/10.1007/3-540-54458-5_61.
- [6]B. Das, S. Datta, and P. Nimbhorkar. Log-space algorithms for paths and matchings in k-trees. In 27th International Symposium on Theoretical Aspects of Computer Science (STACS 2010), volume 5 of Leibniz International Proceedings in Informatics (LIPIcs), pages 215–226. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2010. doi: 10.4230/LIPIcs.STACS.2010.2456. URL https://doi.org/10.4230/LIPIcs.STACS.2010.2456.
- [7]S. Datta, R. Kulkarni, and S. Roy. Deterministically isolating a perfect matching in bipartite planar graphs. Theory of Computing Systems, 47(3):737–757, 2010. doi: 10.1007/s00224-009-9204-8. URL https://doi.org/10.1007/s00224-009-9204-8.
- [8]S. Datta, R. Kulkarni, R. Tewari, and N. V. Vinodchandran. Space complexity of perfect matching in bounded genus bipartite graphs. Journal of Computer and System Sciences, 78(3):765–779, 2012. doi: 10.1016/j.jcss.2011.11.002. URL https://doi.org/10.1016/j.jcss.2011.11.002.
- [9]S. Datta, P. Kumar, A. Mukherjee, A. Tawari, N. Vortmeier, and T. Zeume. Dynamic complexity of reachability: How many changes can we handle? In 47th International Colloquium on Automata, Languages, and Programming (ICALP 2020), volume 168 of Leibniz International Proceedings in Informatics (LIPIcs), pages 122:1–122:19. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi: 10.4230/LIPIcs.ICALP.2020.122. URL https://doi.org/10.4230/LIPIcs.ICALP.2020.122.
- [10]S. Datta, C. Gupta, R. Jain, A. Mukherjee, V. R. Sharma, and R. Tewari. Reachability and matching in single crossing minor free graphs. In 41st IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science (FSTTCS 2021), volume 213 of Leibniz International Proceedings in Informatics (LIPIcs), pages 16:1–16:16. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi: 10.4230/LIPIcs.FSTTCS.2021.16. URL https://doi.org/10.4230/LIPIcs.FSTTCS.2021.16.
- [12]S. Fenner, R. Gurjar, and T. Thierauf. Bipartite perfect matching is in quasi-NC. In Proceedings of the 48th Annual ACM Symposium on Theory of Computing (STOC), pages 754–763. ACM, 2016. doi: 10.1145/2897518.2897564.DOI
- [13]M. L. Fredman, J. Komlós, and E. Szemerédi. Storing a sparse table with O(1) worst case access time. Journal of the ACM, 31(3):538–544, 1984. doi: 10.1145/828.1884. URL https://doi.org/10.1145/828.1884.
- [14]C. Gupta, V. R. Sharma, and R. Tewari. Reachability in O(log n) genus graphs is in unambiguous logspace. In 36th International Symposium on Theoretical Aspects of Computer Science (STACS 2019), volume 126 of Leibniz International Proceedings in Informatics (LIPIcs), pages 34:1–34:13. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2019. doi: 10.4230/LIPIcs.STACS.2019.34. URL https://doi.org/10.4230/LIPIcs.STACS.2019.34.
- [15]C. Gupta, V. R. Sharma, and R. Tewari. Efficient isolation of perfect matching in O(log n) genus bipartite graphs. In 45th International Symposium on Mathematical Foundations of Computer Science (MFCS 2020), volume 170 of Leibniz International Proceedings in Informatics (LIPIcs), pages 43:1–43:13. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2020. doi: 10.4230/LIPIcs.MFCS.2020.43. URL https://doi.org/10.4230/LIPIcs.MFCS.2020.43.
- [16]V. A. T. Kallampally and R. Tewari. Trading determinism for time in space bounded computations. In 41st International Symposium on Mathematical Foundations of Computer Science (MFCS 2016), volume 58 of Leibniz International Proceedings in Informatics (LIPIcs), pages 10:1–10:13. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi: 10.4230/LIPIcs.MFCS.2016.10. URL https://doi.org/10.4230/LIPIcs.MFCS.2016.10.
- [17]O. Reingold. Undirected connectivity in log-space. Journal of the ACM, 55(4):17:1–17:24, 2008. doi: 10.1145/1391289.1391291. URL https://doi.org/10.1145/1391289.1391291.
- [18]K. Reinhardt and E. Allender. Making nondeterminism unambiguous. SIAM Journal on Computing, 29(4):1118–1131, 2000. doi: 10.1137/S0097539798339041. URL https://doi.org/10.1137/S0097539798339041.
- [19]O. Svensson and J. Tarnawski. The matching problem in general graphs is in quasi-NC. In 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS), pages 696–707. IEEE, 2017. doi: 10.1109/FOCS.2017.70.DOI
- [20]R. Tewari and N. V. Vinodchandran. Green’s theorem and isolation in planar graphs. Information and Computation, 215:1–7, 2012. doi: 10.1016/j.ic.2012.03.002. URL https://doi.org/10.1016/j.ic.2012.03.002.
- [21]D. van Melkebeek and G. Prakriya. Derandomizing isolation in space-bounded settings. In 32nd Computational Complexity Conference (CCC 2017), volume 79 of Leibniz International Proceedings in Informatics (LIPIcs), pages 5:1–5:32. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2017. doi: 10.4230/LIPIcs.CCC.2017.5. URL https://doi.org/10.4230/LIPIcs.CCC.2017.5.