Results on -Freeness Testing in Graphs of Bounded -Admissibility
Abstract
We study the property of -freeness in graphs with known bounded average degree, i.e. the property of a graph not containing some graph as a subgraph. -freeness is one of the fundamental graph properties that has been studied in the property testing framework.
Levi [10] showed that triangle-freeness is testable in graphs of bounded arboricity, which is a superset of e.g. planar graphs or graphs of bounded degree. Complementing this result is a recent preprint [7] by Eden et al. which shows that, for every , -freeness is not testable in graphs of bounded arboricity.
We proceed in this line of research by using the -admissibility measure that originates from the field of structural sparse graph theory. Graphs of bounded -admissibility are identical to graphs of bounded arboricity, while graphs of bounded degree, planar graphs, graphs of bounded genus, and even graphs excluding a fixed graph as a (topological) minor have bounded -admissibility for any value of [12].
In this work we show that -freeness is testable in graphs with bounded -admissibility for all graphs of diameter . Furthermore, we show the testability of -freeness in bounded -admissible graphs directly (with better query complexity) and extend this result to -freeness. Using our techniques it is also possible to show that -freeness and -freeness are testable in graphs with bounded -admissibility. The formal proofs will appear in the journal version of this paper.
These positive results are supplemented with a lower bound showing that, for every , -freeness is not testable for graphs of bounded -admissibility. This lower bound will appear in the journal version of this paper. This implies that, for every , there exists a graph of diameter , such that -freeness is not testable on graphs with bounded -admissibility. These results lead us to the conjecture that, for every , and , -freeness is testable in graphs of bounded -admissibility, and for every , -freeness for graphs of diameter is testable in graphs with bounded -admissibility.
Keywords and phrases:
Property Testing, Sparse Graphs, Degeneracy, AdmissibilityCopyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Theory of computation Design and analysis of algorithmsEditors:
Olaf Beyersdorff, Michał Pilipczuk, Elaine Pimentel, and Nguyễn Kim ThắngSeries and Publisher:

1 Introduction
A graph property is a class of graphs closed under isomorphisms. A property-tester for a property is a probabilistic algorithm that receives as input the size of a graph , a distance parameter (among potentially other parameters), and oracle access to the graph . The algorithm accepts with probability at least any input from and rejects with probability at least an input that it is -far from the property . The term “-far” is a notion of distance that depends on the exact problem setting and discuss it further below. The complexity measure of a property-tester is a function that bounds above the total number of queries to the oracle the algorithm uses, as a function of the input parameters , size of the graph and any other input parameters provided. A property is testable if it has a property-tester whose query complexity is independent of the size of the input graph.
We study here the property of -freeness, where is a fixed known graph, i.e. the property of graphs that do not have a subgraph isomorphic to , which is one of the fundamental graph properties that has been studied in the property testing framework. -freeness was studied in the dense, sparse and general graph models. In the dense model it was shown implicitly in [1] that -freeness is testable, for a more explicit result see [2]. Goldreich and Ron [8], showed that -freeness is testable in the bounded degree graph model. In an effort to move towards larger sparse111Here sparse should be understood as having a linear number of edges or equivalently bounded average degree graph classes, Czumaj et al. [4] showed that -freeness is testable in sparse graphs when is a tree. This result is most likely tight for sparse graphs as Alon et al. [3] showed that triangle-freeness is not testable in sparse graphs.
While this settles the question for the most general notion of sparse graphs, the question is still open for a plethora of sparse graph subclasses which are more structured. Possibly the most famous among them is the class of planar graphs. Czumaj et al. [5] showed that -freeness is testable for this class. Proceeding in this line of research, and moving to a much larger class of sparse graphs, Levi [10] showed that triangle-freeness is testable in graphs of bounded arboricity, which is a superset of the family of planar graphs. In Eden et al. [7] it is shown that, for every , -freeness is not testable in graphs of bounded arboricity. Specifically, it is shown that, in graphs of bounded arboricity, the query complexity of -freeness and -freeness is , the query complexity of -freeness is , and for every , the query complexity of -freeness is and . These results also leave open the question of which sparse classes – somewhere between bounded arboricity and planar graphs – and which values of is -freeness testable.
In order to identify a suitable notion of sparseness, we draw inspiration from the field of structural sparse graph theory and propose the -admissibility measure of graphs as a parameter that governs the testability of -freeness. -admissibility was originally defined in [9], where it was simply referred to as admissibility. The more general notion of -admissibility222If you are interested in a more formal definition in this stage, we suggest that you proceed to Section 3, and read up to Proposition 3 before you proceed here. for natural values of was first defined in [6]. Strictly speaking, -admissibility is a family of measures where governs how “deep” into the graph we look. We remark that, graph classes with bounded -admissibility are equivalent to graphs with bounded arboricity (both measures lie within a constant factor of each other). Many well-known sparse classes, like planar graphs, graphs of bounded genus, graphs excluding a fixed (topological) minor and graphs of bounded degree have bounded -admissibility [12, 14, 6] meaning that the -admissibility of any member of such a class can be bounded by a function which only depends on and the class itself.
We show that -freeness is testable in graphs with bounded -admissibility, and that -freeness, for every of diameter , is also testable in graphs with bounded -admissibility and in particular -freeness is testable in graphs with bounded -admissibility. Using our techniques it is possible to show that and are testable in graphs with bounded -admissibility. This result will appear in the journal version of this paper that will also contain a lower bound which shows that, for every , -freeness is not testable in graphs of bounded -admissibility. This implies that for every , there exists a graph of diameter such that -freeness is not testable on graphs with bounded -admissibility. The above leads us to conjecture that, for every and , -freeness is testable in graphs with bounded -admissibility and furthermore for every , -freeness, for of diameter , is testable in graphs with bounded -admissibility.
Techniques
All the lower bounds use Yao’s Minimax Principle [13] and the construction of suitable input instances. The graph constructions used for the lower bounds, unsurprisingly, are very similar to the ones used in [7] to prove a lower bound on testing -freeness in bounded arboricity graphs. We chose to provide our lower bounds here and not refer to [7], to demonstrate how they apply to testing -freeness of graphs of bounded -admissibility, for natural values of . This is not covered in [7]. In addition, the graphs provided in the proof also demonstrate that, for every natural value of and large enough , there are bounded -admissibility graphs with vertices some of which have degree . It should be noted that these graphs are also “far” from being planar.
All upper bounds are based on the same algorithm and can be seen as a variation of the “standard” BFS (breadth first search) based testers for the bounded degree graph model. Many examples of “standard” BFS testers can be found in [8]. In such testers, initially a small subset of the vertices of the graph is selected uniformly at random (u.a.r.) and then a fixed depth BFS is performed (using oracle queries) from every vertex in the selected set. The tester presented here (Algorithm 1) differs from the “standard” testers at the BFS stage as follows: While the “standard” testers queries proceeds with the BFS by querying all neighbours of a vertex , Algorithm 1 randomly selects size at most subset of , where is a parameter provided to the algorithm and is the degree of the vertex in the input graph , and queries the identity of the th neighbour of the vertex, for every in the selected set. We note Algorithm 1 behaves like the “standard” BFS based tester if the input graph has maximum degree .
Algorithm 1 has a one-sided error, i.e. it only rejects if it detects an -subgraph (a subgraph that is isomorphic to ), therefore, to prove its correctness, it is sufficient to show that, given oracle access to a bounded admissibility graph that is -far from being -free, Algorithm 1 rejects with high probability.
To prove the required rejection probability we show the following. Given an input graph with bounded admissibility, we can remove edges from the graph in a process we refer to as trimming to obtain a new auxiliary graph . We relate this graph to in two ways: first we show that if is far from -freeness, then so is . Then we show that if there exists an -subgraph in , then this subgraph includes a vertex with low degree, such that if Algorithm 1 starts its search from this vertex in (not in ), then with high probability it will discover an -subgraph (though not necessarily the one we just referred to). The “high probability” is proved to be sufficiently large by using the properties of the graph . Note that the construction of is only a tool for this proof, it is not actually constructed by the testing algorithm.
Finally, we show that when is far from being -free, then there are many such low degree vertices in . This implies that with sufficiently high probability Algorithm 1 initially selects such a vertex.
2 Preliminaries
††margin: ,,We use for the set of integer numbers, for the set of real numbers, for the set of positive real numbers. For an integer , we use as a shorthand for the set . In this paper, all graphs are simple. For a graph we use and to refer to its vertex- and edge-set, respectively. For a vertex we use the notation to denote the set of all of ’s neighbours in . We omit the subscript, when clear for context. The diameter of a graph is the maximum of the distance between and over all pairs of vertices and in .
We use the notation , where to denote the set of vertices in that have degree larger than . We write when is clear from context. In some places we will use the notation without initially stating the value of , in those cases is calculated further down when its concrete value is required.
For sequences of vertices , in particular paths, we use notations like , or or to indicate subpaths that are part of the larger path. For example, the notation for a path would mean that is the subpath , whereas in the same context would mean that is the subpaths . All the paths in this paper are simple. Though paths here are undirected, we often treat them as directed by specifying a start and end vertex.
Property testing
We work only with properties of -admissible graphs, which we formally define in the next section. At this stage it is enough to know that both and take integer values that are strictly positive and that a -admissible graph of vertices can have at most edges.
A graph property (or simply property in this paper) is a class of graphs closed under isomorphism and we say that a graph has the property if it is contained in this class. The distance of a graph from a property of -admissible graphs is the minimum number of edges that must be removed/added to in order to arrive at a -admissible graph with the property. We say a graph is -far from a property of -admissible graph, if the graph’s distance to the property is at least (an portion of the maximum number of edges possible in -admissible graphs) and otherwise we say that it is -close to the property.
A property tester is a randomised algorithm that receives oracle access to a graph as part of its input. An oracle can answer the following queries for vertices :
-
the degree of a vertex (degree query),
-
the th neighbour of in (neighbour query),
-
whether is an edge in (adjacency query).
By combining these queries it can in particular reveal the whole neighbourhood of a vertex using queries. The oracle returns the special symbol “” when asked out of range neighbour queries, e.g. when asked to return the 10th neighbour of a vertex with less than 10 neighbours.
Formally, a property tester for a property of -admissible graphs, is a randomized algorithm that receives as input parameters , , and oracle access to a -admissible graph with vertices. If the graph is -far from , then rejects with probability at least . If the graph is in , then accepts with probability (if the tester is one-sided) or with probability at least (if the tester is two-sided). The complexity measure of a property tester is a function depending on , , , and which bounds the maximum number of queries the tester makes on an input graph with those parameters.
-subgraph
In this paper, we study the property of -admissible graphs that are -free. That is, graphs that are -admissible and do not have any -subgraph (a subgraph isomorphic to ). In some cases, may be a specific graph, for example, may be a (cycle of length ), for some and we then refer to the problem as -freeness.
In further sections, we use the term knowledge graph to refer to the graph that includes all the vertices, edges and anti-edges (learned from negative answers to neighbour queries) that the algorithm discovered via queries.
3 Graph degeneracy and admissibility, related notations and necessary lemmas
††margin: , ordered graph,An ordered graph is a pair where is a graph and is a total order relation on . We write to denote the ordering of and extend this notation to derive relations , , . For simplicity we will call an ordering of and we write for the set of all possible orderings of .
We use the same notations for graphs and ordered graphs, additionally we write for the before neighbourhood and for the after neighbourhood of a vertex . We omit the graphs in the subscripts if clear from the context. We further use and , as well as and . We omit subscripts if clear from the context.
Definition 1 (Degeneracy).
††margin: DegeneracyA graph is -degenerate if there exists an ordering (a degeneracy ordering) such that .
In particular, for every vertex in a -degenerate graph and every degeneracy ordering of the graph it holds that . Consequently, the number of edges in a -degenerate graph is bounded by . A degeneracy ordering of a graph can be computed in time and for -degenerate graphs [11].
Admissibility
Let and . A path is -admissible in if its length , and . That is, the path goes from to using only vertices such that and satisfies .
For every integer we let be the set of all vertices in such that and is reachable from via an -admissible path of length exactly . We omit the subscript when it is clear from context.
An -admissible path packing is a collection of paths with joint root and the additional properties that every path is -admissible and the subpaths are all pairwise vertex-disjoint (cf. Figure 1). In particular, all endpoints are distinct. ††margin: , , We write to denote maximum size of any -admissible path packing rooted at .
Definition 2 (Admissibility).
The -admissibility of an ordered graph , denoted and the admissibility of an unordered graph , denoted are333Note that some authors choose to define the admissibility as as this matches with some other, related measures.
If is an ordering of such that , then we call an admissibility ordering of . The -admissibility of a graph coincides with its degeneracy and therefore such orderings are easily computable in linear time. For an optimal ordering can also be computed in linear time in , albeit the machinery required is much more complicated, see [6].
††margin:
-admissible, -bounded
We say that a graph is -admissible if .
Note that, by definition, if a graph is -admissible it is also -admissible for all . We call a graph class -bounded if all of its members are -admissible for some finite value .
The following is a well-known result in the field of sparse graphs, we replicate it here using our notation for completeness:
Proposition 3.
Let and be natural numbers, and such that , then for every , and it holds that and in particular .
Proof.
Let be an arbitrary vertex in , and . Note first that, by construction, , and hence we only need to prove the bound on .
For every , let be an -admissible path of length ; such a path exists by the definition of . Let be a subgraph of defined as follows: includes exactly the vertex , all the vertices in and all the vertices in , for every ; and includes every edge of participating in a path for some .
By construction, the set of vertices is independent in and for every , . Also by construction, the distance in of from any vertex in is at most . Hence, we can find a rooted tree in with the following properties: is the root of , the set is the set of leaves of and the depth of is at most .
We next show that the degree of every vertex in the tree is at most . This implies that indeed and in particular .
Let be the degree of in . Since is a tree, there are at most edge disjoint paths from to the leaves of (the vertices in ). These paths have length at most , they share only the vertex , and they correspond to -admissible paths of . The last part holds since , for every internal vertex (non-leaf or root vertex) of and, for every (the leaves of ), it holds that . Therefore, these paths are an -admissible packing of , and hence their number , and in particular the degree of in is at most .
We now show that this applies also to every internal vertex of . We notice that it also holds that , for every . However, it is not necessarily the case that when is an internal vertex of . This is resolved by noticing that for any and path in , if has a vertex that is smaller than , then instead of taking the path , we take its shortest subpath such that . Now, the same reasoning we used for implies that the degree of in is at most .
4 Upper bounds strategy and the testing algorithm
In this section we present Algorithm 1 which is used for all upper bounds presented. Algorithm 1 receives as an input a graph , a set of parameters including the parameter and oracle access to a graph . We note that for each upper bound shown in this paper, the parameters provided to Algorithm 1, in addition to , are dependent on the graph .
Algorithm 1 can be seen as a variation of the “standard” BFS (breadth first search) based testers for properties of bounded degree graphs. In such testers, initially a small subset of the graph’s vertices is randomly selected and then a fixed depth BFS is performed (using oracle queries) from every vertex in the selected set.
Algorithm 1 differs from the “standard” testers, at the BFS stage: In the “standard” tester the search is expanded to all neighbours of a discovered vertex (until the fixed depth is reached). In contrast, Algorithm 1 only queries a subset of neighbours, specifically for a vertex it randomly selects a size at most subset and then it queries the identity of every th neighbour for . We call this type of search pseudo-BFS and refer to it with the acronym PBFS.††margin: PBFS
Lemma 4.
On input , , , , fixed graph , the query complexity of Algorithm 1 is .
Proof.
The proof follows directly from the algorithm.
Upper bound strategy
Algorithm 1 has a one-sided error, i.e. it only rejects if it discovers an -subgraph. That is, once Algorithm 1 finished its last query, its knowledge graph has an -subgraph). Therefore, to prove its correctness, it is sufficient to show that, with high constant probability, it rejects a bounded admissibility graph that is -far from being -free.
To prove the required rejection probability we proceed as follows: given an input graph with bounded admissibility, a new graph is constructed by initially setting , and then removing edges from , in a process we refer to as trimming. We call the auxiliary graph.
We relate th auxiliary graph to in two ways: first we show that if is far from -freeness, then so is . Then we show that if there exists an -subgraph in , then this subgraph includes a vertex with low degree, such that assuming Algorithm 1 starts its search from this vertex in (not in ), then with high probability it will discover an -subgraph of (though not necessarily the one we just referred to). The “high probability” is proved to be sufficiently large by using the properties of the graph . Finally, we show that when is far from being -free, then there are many such low degree vertices in . This implies that with sufficiently high probability Algorithm 1 initially selects such a vertex in the sample set .
The “trimming” process is problem dependent. The simplest case is for -freeness in -bounded graphs and we provide some intuition here before the full formal treatment in the next section. Suppose that and . Suppose also that the set of their common neighbours, not including those in , is small relative to the degree of in . In the trimming process we then remove all edges that are incident to as well as some vertex in . We can then show that (i) we did not remove too many edges and (ii) if and participate in a -subgraph (a subgraph isomorphic to a ) in , then a large enough portion of the neighbours of , are also neighbours of and are not in . Therefore, if is encountered in the first iteration of the external loop of Algorithm 1 (guaranteed to happen if has a neighbour of that is not in ), then with high probability the knowledge graph will include two edges and , where and are not in and are common neighbours of both and . Since the PBFS continues with these common neighbour and they are both not in , the edges and will also appear in the knowledge graph. Thus, the knowledge graph contains a -subgraph. Similar – but more involved – ideas work for -freeness, when has diameter and for -freeness and -freeness.
It is important to note that proving the above properties (i) and (ii) hold relies on the graph being -bounded (for some problem-dependent value of ), and we make extensive use of Proposition 3.
5 Testing -freeness in -bounded graphs
In this section we fix some , an integer , . The input graph is -admissible and we let be an ordering of with .
Trimming.
In the trimming procedure we construct from . We begin with and then remove edges from as follows:
-
1.
For every , and , the edge is removed from .
-
2.
For every and , if , then for every , the edge is removed from .
-
3.
The previous step is repeated until it does not result in the removal of any edges from .
We first show that this trimming procedure preserves farness:
Lemma 5.
If is -far from being -free, then is -far from being -free.
Proof.
Initially and then edges are removed from in Steps 1 and 2 of the trimming. We next show that, in Step 1 of the trimming, at most edges are removed from , and that the same applies to Step 2 of the trimming. This implies the lemma.
In Step 1 of the trimming, for every we remove edges. Thus, the total number of edges removed in this step is at most . By Proposition 3, for every , it holds that . Hence, the preceding sum is at most and
where the first inequality follows since (the sum of degrees is twice the number of edges), and the last equality holds because .
In Step 2 of the trimming, for every and at most edges are removed. Thus, in this step, at most edges are removed. By Proposition 3, for every , it holds that . Hence, the preceding sum is strictly less than , where the first equality follows because .
Lemma 6.
Every -subgraph of that has more than one vertex from , has exactly two vertices and from , all the other two vertices of are neighbours of both and and, there exists , such that .
Proof.
Let be a -subgraph of such that and and be two vertices in . Assume without loss of generality that , and otherwise rename the vertices accordingly.
According to Step 1 of the trimming, and hence and are not adjacent in . By the same reasoning and are the only vertices of in . We conclude that consists of the two vertices and in and two vertices that are not in and are neighbours of both and .
Let and . By the same reasoning as before we may conclude that . Thus, as , . Consequently, by Step 1 of the trimming, , since otherwise in contradiction to (because is adjacent to both and ). As is a subgraph of and (because of Step 1 of the trimming), we can conclude that also in the graph it holds that . The next two lemmas show that if the set selected by Algorithm 1 contains specific types of vertices from , then it rejects with sufficient probability to prove the main Theorem of this section.
Proof.
Let be as in the statement of the lemma. Since is a -subgraph that includes, together with , three vertices from in , it follows that includes a path of length that consists of and two other vertices from .
Now, as Algorithm 1 will execute a PBFS of depth (we set ) it is guaranteed that the knowledge graph constructed by Algorithm 1 will include all vertices of and all edges incident to these vertices. In particular, the knowledge graph eventually has as a subgraph with probability and the claim follows.
Proof.
Let be as in the statement of the lemma. By Lemma 6, has exactly two vertices and from , the other two vertices of are neighbours of both and and are not in . Since , Algorithm 1 queries all of ’s edges, in the first iteration of the PBFS. Thus after the first iteration of the PBFS the knowledge graph already contains the edges and .
We show next that with with probability at least Algorithm 1 queries a neighbour of that is not in and is also a neighbour of , so after the second iteration of the PBFS the knowledge graph also contains the edge . We note that this implies the lemma, because in the third iteration of the PBFS (this is the last iteration, since ) Algorithm 1 will discover all the edges incident to , since , and in particular it will discover the edge , which implies that after the end of the PBFS from the knowledge graph will contain a -subgraph and hence Algorithm 1 will reject.
Let . According to Lemma 6, there exists such that . Without loss of generality assume that and otherwise rename and accordingly. Since , we can conclude that and hence we can assume that at least of the vertices in are not . Thus, . Algorithm 1 selects a vertex from independently and u.a.r. times and hence the probability that none of them are from is at most . So with probability at least Algorithm 1 finds a vertex in and the claim follows.
Proof.
The query complexity of the algorithm follows from Lemma 4 and the values of and .
If is -free, then the knowledge graph constructed by Algorithm 1 will not have a -subgraph and hence Algorithm 1 accepts with probability . So assume in the sequel that is -far from -freeness.
Let be the set of all vertices in that participate in a -subgraph of . Since the degree of all vertices in is less than , if we remove every edge that is incident to a vertex from , then the total number of edges we removed is bounded above by and the resulting graph does not have a -subgraph. Now, by Lemma 5, is -far from -freeness it must be the case that . Consequently, .
Algorithm 1 selects vertices u.a.r. for the set . The probability that none of them are from is at most . So with probability at least , the set includes a vertex that participates in a -subgraph of .
Let be a -subgraph of that includes a vertex . One of two cases applies to : Either (a) includes at most one vertex from or (b) includes more than one vertex from . We now show that given , with probability at least , the knowledge graph of Algorithm 1 eventually has a -subgraph. By using the union bound we can conclude that Algorithm 1 rejects with probability at least .
6 Testing -freeness in -bounded graphs when has diameter
In this section we fix , , . As before, is an arbitrary -admissible graph and is an ordering of with . Finally, is an arbitrary diameter graph.
The trimming process in this section depends on the structure of and requires an extra construct (). Let us first provide some intuition why this is required.
Suppose that is an -subgraph of and is the largest vertex in . We show below that the number of vertices like in is large enough to ensure that with high enough probability one of them will be in the set selected by Algorithm 1.
Ideally, in , every vertex , is reachable from via vertices not from . This is an ideal case, because of the following. The depth of the PBFSs used is . Thus, as the PBFS queries all the neighbours of vertices , all these vertices will be discovered and also all edges incident to them. This means that the algorithm discovers all the edges of except those that are incident on two vertices from . The trimming we use ensures that there are no edges between heavy vertices, so in particular, this latter case cannot occur and Algorithm 1 will discover .
If we do not find ourselves in the ideal case, has a separator that consists only of vertices from . By similar reasoning to the ideal case, if is included in the set that Algorithm 1 selects, it discovers all the vertices in that can be reached from via vertices in , this includes all the vertices of . Let us denote the subgraph found so far by . The algorithm now still needs to find the remaining vertices of that are “behind” the separator, let us call denote this subgraph by .
The problem here is that the vertices of on the boundary between and have a high degree, therefore the probability to discover may be arbitrarily small. We therefore design a trimming process that will ensure that there are many “useful” -subgraphs isomorphic to in that can serves to complete into a graph isomorphic to . Specifically, a subgraph is useful if and there exists an isomorphism from to which maps every vertex of to itself.
Let be a maximum family of vertex disjoint useful -subgraphs with respect to the fixed graph . If is small then we can remove them all simply by removing all edges between members of and . If this is not possible, must be sufficiently large and the PBFS can discover one of its members with sufficiently high probability.
The above is a simplification, since might disconnect into more than two components when removing the separator . In this case we also need to ensure that the members of are sufficiently disjoint.
Finally, in the preceding discussion we fixed a single with separator , however is of course not known in advance. We therefore enumerate all possible sets that can take the role of (not that, by Proposition 3, we only need to look at sets of size ). Since consists only of heavy vertices and our trimming removes edges between heavy vertices, we can further assume to be independent.
Definition 10 (Kernel and ).
††margin: Kernel,A kernel of the graph is an independent subset of of size less than for which has two subgraphs and such that
-
1.
both and are induced and connected,
-
2.
,
-
3.
,
-
4.
every edge of that is incident to a vertex from and , is incident to an edge from ( is a vertex separator in ),
-
5.
the induced subgraph of on the vertices is connected.
We define to be the family of ordered pairs over all kernels of .
Definition 11 (Sibling subgraphs).
Let be a a subset of , and and be two subgraphs of , both including the set of vertices . We say that and are siblings if and there exists an isomorphism from to , such that, for every , .
We say a set of graphs is a set of sibling graphs by , if every pair of graphs in the set are siblings by .
Trimming.
††margin: TrimmingIn the trimming procedure we construct from . We begin with and then remove edges from as follows:
-
1.
For every , and , the edge is removed from .
-
2.
For every , and size subset , if a maximum set of vertex disjoint -subgraphs of that are siblings by , and are isomorphic to so that the vertices of are mapped to the vertices of , has size at most , then, for every vertex in a subgraph of this set, we remove every edge incident to and a vertex in .
-
3.
The previous steps are repeated until it does not result in the removal of any edges from .
Proposition 12.
For every , and size subset , if in some execution of Step 2, for a maximum family of vertex disjoint -subgraphs that are siblings by , and are isomorphic to so that the vertices of are mapped to the vertices of , the following holds: for every vertex in a subgraph of this set, we remove every edge incident to and a vertex in , then after the specific execution of Step 2, there does not exist any -subgraph that is a sibling by of a subgraph in the maximum family.
Proof.
Recall that has diameter , so if it has a separator , then all the vertices of that are not in the separator must be adjacent to some vertex in the separator. Therefore in Step 2, when for every in a subgraph of the set all edges between and are removed, we have that every such vertex cannot participate in any subgraph like the one in the set. Hence, as the family is of maximum size the proposition follows.
Lemma 13.
If is -far from being -free, then is -far from being -free.
Proof.
Note that initially and then edges are removed from in Steps (1) and (2) of the trimming. Given that the value of here is larger than the value used in Section 5, and that Step 1 of the trimming here is the same as Step 1 in Section 5, by the same considerations as in Lemma 5, at most edges are removed from , at Step 1 of the trimming. So, to complete the proof, we only need to show that in Step 1 of the trimming also at most edges are removed from .
According to Step 2 of the trimming, the total number of edges removed from , for every vertex in , is bounded above by the product of the following values:
-
, and
-
, which is an upper bound on the number of option to choose (while considering order) a size subset of (where, for every , by Proposition 3, ), and
-
, the threshold for edge removal for number of subgraphs in a maximum set of sibling subgraphs, and
-
, the number of edges incident to a vertex from and vertices in a subgraph of a maximum set of sibling subgraphs.
The size of is the number of subsets with size less than . Hence, . So, the total number of edges removed from is at most
where the first equality follows because .
Proposition 14.
Let be a -subgraph of . is an independent set in , the largest vertex in is not in and if has a separator , then and is the only separator in consisting of only vertices from .
Proof.
According to Step 1 of the trimming, for every , if , then . Thus, as one vertex is greater than the other for every pair of vertices in there cannot be an edge in that is incident to both. Therefore, is an independent set. By the same reasoning, the largest vertex in an -subgraph of is not in , since it is adjacent to vertices smaller than it ( is connected, because it has diameter ).
Finally, for the last part the claim, in the proof of Proposition 12, we noticed that for every separator of , every vertex of that is not in the separator must be adjacent to some vertex in the separator. The same applies to . So, if a separator of is a subset of , then every vertex that is adjacent to some vertex in the separator is not in and in particular all the vertices of that are not in the separator. This also implies that is the only separator in consisting of only vertices from .
Lemma 15.
Let be an -subgraph of and and suppose that is a separator of , then .
Proof.
Proof.
The query complexity of the algorithm follows from Lemma 4 and the values of and .
If is -free, then knowledge graph of Algorithm 1, will never have an -subgraph and hence, Algorithm 1 accepts with probability . So, from here on in this proof, assume that , is -far from -freeness.
Let be the set of all vertices in that are the largest vertices in a -subgraph of . By Proposition 14, and therefore, by the same reasoning as in Theorem 9, it holds that and, with probability at least that . So, assume that is a vertex in that is the largest vertex in a -subgraph of .
One of two cases applies to : (a) every vertex , is reachable from via the vertices in , and (b) there exists a set such that that is a separator of .
If case (a) applies, then as we already described previously in this section, with probability , the knowledge graph of Algorithm 1 will eventually have an -subgraph. Thus, Algorithm 1 will reject with probability . So, from here on we assume that case (b) applies.
So, assume that has a separator consisting only of vertices from (by Proposition 14, this separator includes all the vertices of ). Since , the diameter of is and is an independent set, for every vertex in , is either its neighbour or shares a neighbour with it, where . This ensures that, with probability , after two steps of the PBFS all the vertices in are discovered. By similar consideration to the previous case, with probability , all vertices reachable from via vertices not in are added to the knowledge graph. For every one these vertices that is not in also all the edges incident on them are also in the knowledge graph. This implies that all the edges between the vertices of and the vertices added to the knowledge graph as described are also in the knowledge graph.
It remains to show that with sufficiently high probability, the edges required to complete the above to -subgraph are included in the knowledge graph. Let be the largest vertex in . Let be an induced subgraph of that includes all the vertices of and all other vertices of that are separated from by . By Step 2, of the trimming we are guaranteed that there exists a family , of size greater than , that consists of vertex disjoint subgraphs of , where every graph in the family is either or its sibling by .
Let be the graph induced by on If we were guaranteed that is connected, then we would only need to show that with high probability Algorithm 1 will discover an edge incident to and a vertex of this subgraph (or similar subgraph of one of its siblings in , that does not share any vertices with the part of the -subgraph already discovered). This holds because, every vertex in is not in , and there are enough steps of the PBFS so that the PBFS reaches all the vertices in and discovers all the edges adjacent to them (the PBFS has steps, and the vertices on a shortest path from to are not in ), thus the PBFS will discover all the vertices of and the edges incident on them.
However, the above guarantee does not hold. So may contain almost connected components. Regardless, if for every one of these connected components, the knowledge graph has it as a subgraph or has its isomorphic equivalent in one of the subgraphs in , and if none of the isomorphic equivalent shares a vertex with other vertices of in the knowledge graph, the knowledge graph has an -subgraph.
For each connected component, there are at least vertex disjoint copies (where the inequality follows because ). So, at least two thirds of the copies of such connected component do not include any other vertices from .
The probability of not discovering one such component is By the union bound, with probability at least , the knowledge graph has all the subgraphs required so that in has a -subgraph. Thus, the proof is complete.
7 Testing and -freeness in -bounded graphs
The proof of the following theorem will appear in the journal version of this paper.
8 Lower bounds for testing -freeness for
The proof of the following theorem will appear in the journal version of this paper.
Theorem 18 ().
For every integer and sufficiently large integer , every two-sided Property-Tester for the -freeness, has query complexity , on input graphs of size .
References
- [1] Noga Alon, Richard A. Duke, Hanno Lefmann, Vojtech Rödl, and Raphael Yuster. The algorithmic aspects of the regularity lemma. J. Algorithms, 16(1):80–109, 1994. doi:10.1006/JAGM.1994.1005.
- [2] Noga Alon, Eldar Fischer, Michael Krivelevich, and Mario Szegedy. Efficient testing of large graphs. Comb., 20(4):451–476, 2000. doi:10.1007/S004930070001.
- [3] Noga Alon, Tali Kaufman, Michael Krivelevich, and Dana Ron. Testing triangle-freeness in general graphs. SIAM Journal on Discrete Mathematics, 22(2):786–819, 2008. doi:10.1137/07067917X.
- [4] Artur Czumaj, Oded Goldreich, Dana Ron, C Seshadhri, Asaf Shapira, and Christian Sohler. Finding cycles and trees in sublinear time. Random Structures & Algorithms, 45(2):139–184, 2014. doi:10.1002/RSA.20462.
- [5] Artur Czumaj and Christian Sohler. A characterization of graph properties testable for general planar graphs with one-sided error (it’s all about forbidden subgraphs). In 2019 IEEE 60th Annual Symposium on Foundations of Computer Science (FOCS), pages 1525–1548. IEEE, 2019. doi:10.1109/FOCS.2019.00089.
- [6] Zdeněk Dvořák. Constant-factor approximation of the domination number in sparse graphs. European Journal of Combinatorics, 34(5):833–840, July 2013. doi:10.1016/j.ejc.2012.12.004.
- [7] Talya Eden, Reut Levi, and Dana Ron. Testing c_k-freeness in bounded-arboricity graphs. In Karl Bringmann, Martin Grohe, Gabriele Puppis, and Ola Svensson, editors, 51st International Colloquium on Automata, Languages, and Programming, ICALP 2024, July 8-12, 2024, Tallinn, Estonia, volume 297 of LIPIcs, pages 60:1–60:20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2024. doi:10.4230/LIPICS.ICALP.2024.60.
- [8] Oded Goldreich and Dana Ron. Property testing in bounded degree graphs. In Proceedings of the twenty-ninth annual ACM symposium on Theory of computing, pages 406–415, 1997. doi:10.1145/258533.258627.
- [9] H. A. Kierstead and W. T. Trotter. Planar graph coloring with an uncooperative partner. Journal of Graph Theory, 18(6):569–584, October 1994. doi:10.1002/jgt.3190180605.
- [10] Reut Levi. Testing triangle freeness in the general model in graphs with arboricity . In 48th International Colloquium on Automata, Languages, and Programming, ICALP 2021, July 12-16, 2021, Glasgow, Scotland (Virtual Conference), volume 198 of LIPIcs, pages 93:1–93:13. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPICS.ICALP.2021.93.
- [11] David W Matula and Leland L Beck. Smallest-last ordering and clustering and graph coloring algorithms. Journal of the ACM (JACM), 30(3):417–427, 1983. doi:10.1145/2402.322385.
- [12] Jaroslav Nešetřil and Patrice Ossona de Mendez. Sparsity: Graphs, Structures, and Algorithms, volume 28 of Algorithms and Combinatorics. Springer, 2012. doi:10.1007/978-3-642-27875-4.
- [13] Andrew Chi-Chin Yao. Probabilistic computations: Toward a unified measure of complexity. In 18th Annual Symposium on Foundations of Computer Science (sfcs 1977), pages 222–227. IEEE Computer Society, 1977.
- [14] Xuding Zhu. Colouring graphs with bounded generalized colouring number. Discrete Mathematics, 309(18):5562–5568, 2009. doi:10.1016/J.DISC.2008.03.024.