Testing Triangle Freeness in the General Model in Graphs with Arboricity
Abstract
We study the problem of testing triangle freeness in the general graph model. This problem was first studied in the general graph model by Alon et al. (SIAM J. Discret. Math. 2008) who provided both lower bounds and upper bounds that depend on the number of vertices and the average degree of the graph. Their bounds are tight only when and or when , where denotes the maximum degree and denotes the average degree of the graph. In this paper we provide bounds that depend on the arboricity of the graph and the average degree. As in Alon et al., the parameters of our tester is the number of vertices, , the number of edges, , and the proximity parameter (the arboricity of the graph is not a parameter of the algorithm). The query complexity of our tester is on expectation, where denotes the arboricity of the input graph (we use to suppress factors). We show that for graphs with arboricity this upper bound is tight in the following sense. For any where there exists a family of graphs with arboricity and average degree such that queries are required for testing triangle freeness on this family of graphs. Moreover, this lower bound holds for any such and for a large range of feasible average degrees 111For a graph, , whose arboricity is , the number of edges is at most and at least . Thus, the average degree of is at least and at most ..
1 Introduction
Testing triangle-freeness is one of the most basic decision problems on graphs. The existence of triangles in a graph is often a crucial property for various applications. In the realm of property testing, decision problems are relaxed so that a tester for a property is only required to distinguish between graphs that have the property from graphs which are “far” according to some predetermined distance measure, from having the property , which in our case are graphs which are far from being triangle free.
Testing triangle freeness is known to be possible with query complexity which only depends on the proximity parameter, , in graphs which are either dense or sparse. More specifically, Alon, Fischer, Krivelevich and Szegedy [2] showed that in the dense-graphs model [8] it is possible to test triangle-freeness with query complexity which is independent of the size of the graph but has a tower-type dependence in . In the other extreme, Goldreich and Ron [9] observed that in the bounded-degree model [9] it is possible to test triangle-freeness with query complexity given that the maximum degree of the input graph is constant.
Alon, Kaufman, Krivelevich, Ron [3] were the first to study this problem in the general-graphs model [12, 11]. This model is more stringent in the sense that we do not assume anything on the density of the graph and the distance is measured with respect to the actual number of edges in the graph (instead of the maximum possible number of edges). They provided several upper bounds which apply for almost the entire range of average degrees. They also provided lower bounds that show that their upper bounds are at most quadratic in the optimal bounds. Shortly after, Rast [13] and Gugelmann [10] improved their upper bounds and lower bounds, respectively, for some ranges of the parameters.
Although there is a fairly significant gap between the known upper bounds and lower bounds for the vast range of parameters, there has been no progress on this question since then. In this paper we provide an upper bound and several lower bounds which are tight for a large range of parameters. Surprisingly, our bounds depend on the arboricity of the graph although it is not a parameter of our algorithm.
1.1 Results
We provide an upper bound whose running time complexity is on expectation. Therefore, for our upper bound is and when our upper bound is (ignoring polynomial dependencies in ).
We provide three lower bounds, each suitable for a different range of parameters.
-
1.
For any and any feasible , we provide a lower bound of queries. Therefore our upper bound is tight when (up to polynomial dependencies in and factors).
-
2.
For any and any feasible we provide a lower bound of queries. Therefore, our upper bound is also essentially tight as long as (notice that since , it is implied that this lower bound applies only for graphs in which ). Since we may assume that (otherwise we already have essentially tight lower bound), one implication of this lower bound is that our upper bound is tight in the strong sense for graphs with arboricity (namely it is tight for any feasible ) as it is always the case that for .
-
3.
For any and any feasible we provide a lower bound of queries. Since it is always the case that , a lower bound of queries is also implied.
To summarize, for graphs of arboricity we obtain that our upper bound is tight for a large range of average degrees. Additionally, for the range of average degrees in which we do not provide tight bounds, our upper bound is essentially while our lower bound is in the worst case.
1.2 Related Work
1.2.1 Property testing of triangle freeness
As mentioned above, testing triangle freeness, in the context of property testing, was first studied by Alon et al. [2] in the dense graphs model. They showed that triangle freeness can be tested in time which is independent of the size of the graph. However, their upper bound has tower-type dependence in . Alon [1] showed that the query complexity of this problem in the dense-graphs model is indeed super-polynomial in .
In the bounded degree model Goldreich and Ron [9] observed that it is possible to test triangle freeness with query complexity in graphs of maximum degree bounded by some constant.
The problem of testing triangle freeness in the general graph model was first studied by Alon, Kaufman, Krivelevich, Ron [3]. The query complexity of their algorithms dependent on and , the number of vertices in the graph and the average degree, respectively. They provided sublinear upper bounds for almost the entire range of parameters. Moreover, their upper bounds are at most quadratic in their lower bounds. Specifically, their upper bound, which is combined from several upper bounds is . Their lower bound, which is also combined from several lower bounds, is .
1.2.2 Sublinear algorithms that receive the arboricity of the graph as a parameter
Eden, Ron and Rosenbaum [5] designed an algorithm that given , the number of edges of the input graph and an upper bound on the arboricity of the input graph, , the algorithm makes queries on expectation and samples an edge of the graph almost uniformly. More specifically, each edge in the graph is sampled with probability in the range .
Eden, Ron and Seshadhri [6] estimate the degree distribution moments of an undirected graph. In particular, for estimating the average degree of a graph, their algorithm has query complexity of . As they show in their paper, if is not given as an input to the algorithm then estimating the average degree is not possible in general with this query complexity.
In another paper, Eden, Ron and Seshadhri [7] give a -approximation for the number of -cliques in a graph given a bound on the arboricity of the graph . In particular for triangles they provide an upper bound with expected running time, in terms of , and the number of triangles in the graph, , of .
1.2.3 Testing graphs for bounded arboricity
Eden, Levi and Ron [4] provided an algorithm for testing whether a graph has bounded arboricity. Specifically, they provide a tolerant tester that distinguished graphs that are -close to having arboricity from which are -far from having arboricity , where is an absolute constant. The query complexity and the running time of their algorithm is in terms of , and is and is quasi-polynomial in .
1.3 Comparison between our upper bound and upper bounds in previous work
As mentioned before, Alon et al. [3] provide tight bounds only in two cases. The first case is when and , where denotes the maximum degree and denotes the average degree of the graph. In this case, it follows that an so our upper bounds essentially match. Additionally we note that a bound on the arboricty of the graph does not imply a bound on the maximum degree of the graph. In fact, the maximum degree could be while the arboricity is (as it is the case in the star graph). Consequently, the tightness of our upper bound is not restricted for graphs which have bounded maximum degree.
The second case is when , for these graphs the running time complexity of their algorithm is . For this case, the running time complexity of our upper bound is . We note that in graphs in which , could range between and . Therefore when the complexity of our upper bound is not worse than the complexity of the upper bound in [3] but could be much better, depending on .
For average degree in the range between and and in the range between and the upper bound of queries of Alon et al. achieves the best running time, in terms of and . For these ranges, the running time of our algorithm is . Since , we obtain that for this ranges as well the performances of our algorithm are at least as good (up to and factors) but could be significantly better.
1.4 High-level of Our Algorithm
It is well known that a graph which is -far from being triangle free has edge-disjoint triangles (see Claim 1). Therefore if we were able to sample edges uniformly from the graph then after sampling edges we would sample an edge which belongs to a triangle. Thus, if we revealed the entire neighborhood of and the entire neighborhood of then we would find a triangle in the graph. Our algorithm is based on this simple approach. There are only two problems that need to be addressed. The first problem is that sampling edges uniformly in a graph in which the degrees have high variability is too costly. The second problem, which also stems from the variability of the degrees in the graph, is that revealing the entire neighborhood of a vertex can be too costly, depending on its degree.
This is where the arboricity of the graph comes into play. For a graph of arboricity , as was shown in [4], the fraction of edges in the subgraph induced on heavy vertices, that is, vertices with degree greater than where is some absolute constant, is at most . Therefore, if was given to us as a parameter then we could, in some sense, ignore the subgraph induced on vertices of degree greater than since a graph which is -far from being triangle free still have violating edges (and edge-disjoint triangles) even after we remove this subgraph entirely. Ignoring this subgraph allows us on one hand to sample edges almost uniformly from the resulting graph while making only queries, and also guarantees that there are violating edges for which both endpoints are not heavy. This solves the two problems we had with taking the simple approach.
However a bound on the arboricty of the graph is not given to the algorithm as a parameter. Since approximating the arboricity of a graph up to a constant factor is not possible in sublinear time (to see this consider a graph with a hidden clique), we estimate a different parameter which we informally refer to as the effective arboricity of the graph. We show that this parameter suffices for our needs. In fact, this parameter could be much smaller than , in which case the complexity of our algorithm is better than . We reduce the problem of approximating the effective arboricity of the graph to the problem of estimating the number of edges in the graph in which we remove the subgraph induced on heavy vertices, where heavy vertices are defined with respect to increasing thresholds. We stop increasing our threshold once the estimation of the number of edges is sufficiently large. As we prove, with high constant probability, our approximation to the effective arboricity is bounded by which leads to a tester with running time , as claimed.
1.5 Lower Bounds
Our first lower bound of for graphs in which is based on a simple hitting argument. Specifically, construct a graph which is -far from being triangle free in which queries are required in order to sample a vertex which is not isolated with probability that is at least .
Our other two lower bounds are simple adaptations of the lower bound of queries presented in Alon et al. [3].
2 Preliminaries
Let be an undirected graph and let denote the average degree of where and . For each vertex , let denote the number of neighbors of . For a subset of vertices we denote by the subgraph induced on . For a directed graph we denote by the average out-degree of .
A graph is triangle free if for every three vertices, in at least one pair in is not an edge of . A graph is -far from being triangle free if more than edges need to be removed in order to make triangle free.
In the general graph model the tester accesses the graph via the following oracle queries.
-
1.
Degree queries: on query the oracle returns .
-
2.
Neighbor queries: on query where , the oracle returns the -th neighbor of .
-
3.
Vertex-pair queries: on query the oracle returns whether there is an edge between and .
An algorithm is a tester for the property of triangle freeness if given a proximity parameter and access to an input graph , it accepts with probability at least if is triangle free and rejects with probability at least if is -far from being triangle free. If the tester always accepts graphs which are triangle free we say it has one-side error. Otherwise we say it has two-sided error.
Claim 1.
A graph which is -far from being triangle free has at least edge-disjoint triangles.
Proof.
Consider a procedure that given a graph , as long as there is triangle, in it deletes all the edges of and proceeds in this manner until there are no triangles in the graph. The number of edges which are deleted by this process is at least . Therefore the number of edge disjoint triangles that are deleted is at least . The claim follows. ∎
The arboricity of an undirected graph , denoted by , is the minimum number of forests into which its edges can be partitioned. Equivalently it is the minimum number of spanning forests needed to cover all the edges of the graph.
3 The Algorithm
3.1 First Step: computing the threshold for defining heavy vertices
As described above, for an input graph , the number of edges in the subgraph induced on the heavy vertices w.r.t. the threshold is at most (see Claim 4). Therefore, when testing triangle freeness, we may, roughly speaking, ignore this subgraph with the hope of obtaining better complexity. Since is not given to the algorithm as a parameter, we compute, in Algorithm 1, a different parameter of the graph, denoted by , which is, roughly speaking, an approximation of the effective arboricity of the graph. In order to specify the guarantees on we shall need a couple of definitions.
Definition 2.
For a graph and a threshold we define the set of heavy vertices with respect to as and the set of light vertices with respect to as .
When is clear from the context we may simply use and . Using the definition of , we next define the graph which is defined w.r.t. and a threshold .
Definition 3 (The undirected graph ).
For a graph and a threshold , the graph is an undirected graph defined as follows. The set of vertices of is and the set of edges of is . Namely, is the graph after removing the edges for which both endpoints are heavy with respect to .
Claim 4.
For a graph , and it holds that .
Proof.
We shall prove the claim about . The general claim will follow from the fact that is monotonically non-decreasing in . Let denote the sub-graph induced on where and let denote the number of edges of this graph. Our goal is to show that where . The sum of the degrees of vertices in is greater than , therefore . On the other hand, since the arboricity of is also bounded by it follows that . Therefore , as desired. ∎
The guarantees on , which is the return value of Algorithm 1 (that will be described next), are as described in the following claim.
Claim 5.
With probability at least , returned by Algorithm 1 is such that:
-
1.
where ,
-
2.
.
Algorithm 1 proceeds in iterations where in each iteration it multiplies by a factor of , where initially is set to . It stops when the estimated number of edges in , for which is , is at least . In order to estimate the number of edges in , Algorithm 1 calls Algorithm 2.
In turn, Algorithm 2 uses the directed graph , which we defined momentarily, that is constructed from and can be accessed by making a constant number of queries to .
Definition 6 (The directed graph ).
The graph is a directed version of the graph in which we orient the edges as follows. For every edge of , we orient the edge from to if: (a) and or (b) both and and . Otherwise, we orient it from to .
-
1.
Sample a random neighbor of , . If the edge between and is oriented from to in then set , otherwise set
-
2.
Set
The following claim specifies the guarantees of Algorithm 2.
Claim 7.
Given a query access to a graph and parameters , , , and where and , Algorithm 2 outputs such that w.p. at least , if , and , otherwise, where .
Proof.
First observe that is an indicator variable to the event that the edge selected in the -th iteration of Algorithm 2, is an out-edge of in . Since we obtain the following.
(1) |
Similarly,
(2) |
Observe that if then and so . On the other hand, if then . Therefore, in both cases . Thus, for which is it follows by Multiplicative Chernoff’s bound (see Theorem 3 in the appendix) that with probability at least ,
And so
Since we obtain that
Hence, if then and so , implying that , as desired. On the other hand, if , then it is not hard to see that the claim follows by a straightforward coupling argument. More specifically, first assume that and so by the above, with probability at least ,
. Therefore, it follows by a coupling argument that with probability at least , also in the case that . ∎
Claim 8.
For an input graph and parameters , , , and , where and , the time complexity and query complexity of Algorithm 2 is .
Proof.
The claim follows from the fact that in order to implement Steps 2.1 and 2.2 of Algorithm 2 the algorithm makes a constant number of queries to . Specifically, for each the algorithm either performs a single degree query (in case then or a single adjacency-list query and degree queries in case (the orientation of the edge can be determined by the degrees and ids of and ). The implementation of Step 2.2 does not require additional queries as . ∎
We are now ready to prove Claim 5.
Proof of Claim 5.
For the sake of analysis assume that Algorithm 1 performs all iterations of the for-loop. Let denote the event that is as claimed in Claim 7. By Claim 7, for a fixed , the probability that occurs is at least for an appropriate setting of . Therefore, by the union bound the probability that occurs for all is at least . From this point on we condition on the event that indeed occurs for all .
Let for every . Let denote the iteration in which Algorithm 1 returns a value. By Step 1 of Algorithm 1, . By Claim 7, it follows that , as desired (to see this note that if then By Claim 7, ).
To prove the claim about we consider the minimum , for which . If then clearly , as desired. Otherwise, we claim that (namely, that ) which implies that , as desired. To see this, first note that by Claim 4, for any and , . Therefore . Therefore, by Claim 7, , which implies that the algorithms stops at the -th iteration. ∎
3.2 Second Step: sampling edges almost uniformly given a threshold for heavy vertices
Given a threshold , Algorithm 3 samples an edge from almost uniformly as described in the next claim.
Claim 9.
Algorithm 3 samples an edge from such that for each edge, , of , the probability to sample is in , where and are absolute constants and . If is such that then the expected running time of the algorithm is .
Proof.
Consider a single iteration of the while loop of Algorithm 3. For an edge in let denote the probability that is returned in this iteration of Algorithm 3. If is an edge such that both endpoints are in , then . If is an edge such that one endpoint in and the other endpoint is in , then . Therefore for any two edges and in the probability that is picked by the algorithm is at most twice the probability that is picked by the algorithm. Since Algorithm 3 only returns edges in , the claim about the probability to sample an edge follows.
For a fixed iteration of the while loop, the probability that the algorithm returns one of the edges of is at least which is at least in the case that . Therefore in this case the expected number of iterations of the while loop is at most . Hence the claim about the expected running time follows. ∎
Remark 1.
We remark that Algorithm 3 is stated as a Las Vegas algorithm. Moreover, if then we can not obtain from Claim 9 any bound on the expected running time of the algorithm. However, we note that since and are known then we can set a timeout for the algorithm (specifically for some constant ) and incorporate the event that we were forced to stop the algorithm in the failure probability of the tester.
3.3 Putting things together - the algorithm for testing triangle freeness
Since the tester has one-sided error (it rejects only if it finds a witness for violation, i.e., a triangle) its correctness follows from the following claim.
Claim 10.
If is -far from being triangle free then Test Triangle Freeness finds a triangle with probability at least . The expected running time of the algorithm is .
Proof.
Let be an input graph which is -far from being triangle free. There are at least edge-disjoint triangles in (see Claim 1). Let denote the event that for that is return by Algorithm 1 it holds that where . By Claim 5 occurs with probability at least . Given that occurred, it follows that there are at least edge-disjoint triangles in . Let be an arbitrary subset of these edge-disjoint triangles where . By the definition of it holds that for every edge either or . Thus, for every the triangle includes an edge such that both and are in . Therefore, there are at least edges in such that if Algorithm 3 returns one of these edges in Step 4 of Algorithm 4 then Algorithm 4 rejects. For every , let denote the event that Algorithm 3 returns one of these edges in the -th iteration of Algorithm 4.
By Claim 9, given that occurred, the probability that occurs (given that the algorithm did not return REJECT before the -th iteration) is at least for some absolute constant . Therefore the probability that both and occur for some is at least for an appropriate setting of . Thus the algorithm rejects with probability at least as desired. ∎
4 Lower Bounds
4.1 Lower bound of for any and any feasible
Theorem 1.
For any and any which is feasible w.r.t. , any algorithm for testing triangle-freeness must perform queries where , and denote the number of vertices, the number of edges and the arboricity of the input graph, receptively. This lower bound holds even if the algorithm is allowed two-sided error.
Proof.
We consider the following graph over vertices, edges and of arboricity . and are subsets of vertices each and is a subset of vertices. , and are pairwise disjoint. The edges of the graph are as follows. The sub-graph induced on and is a complete bipartite graph with on one side and on the other side. Similarly the subgraph induced on and is also a complete bipartite graph. Between and we take edge disjoint prefect matchings. Consequently the degree of every node in and , as well as the arboricity of the graph, is exactly . The number of edge disjoint triangles in the graph is at least . To see this consider the following correspondence between an edge such that and and a triangle in the graph. Let denote the matching for which belongs to, then triangle that corresponds to is .
Therefore the graph is -far from being triangle free (if are edge disjoint triangles of then we need to delete at least one edge per triangle in order to make triangle free). The number of queries we need to make to hit either or is . The number of queries we need to make to hit is . Since , we obtain a lower bound of queries in order to hit a vertex from . Therefore unless the tester makes queries, it can not distinguish between and the empty graph. The theorem follows. ∎
4.2 Lower bound of for any and any feasible
We adapt the following lower bound of Alon et al. [3].
Theorem 2.
Any algorithm for testing triangle-freeness must perform queries. This lower bound holds even if the algorithm is allowed two-sided error and even for .
Using Theorem 2, we shall prove the following claims.
Claim 11.
For any and any feasible w.r.t. such that , any algorithm for testing triangle-freeness must perform queries, where and denote the number of edges and the arboricity of the input graph, respectively. This lower bound holds even if the algorithm is allowed two-sided error.
Proof.
Assume towards contradiction that there exists an algorithm for testing triangle-freeness that is allowed two-sided error and performs queries even for input graphs for which , where and denote the number of edges and the arboricity of the input graph of , respectively. We will show that there exists an algorithm for testing triangle-freeness (with two-sided error) for graphs in which , and the maximum degree is , whose query complexity is , where and denote the number of edges and the number of vertices of the input graph of , respectively. This will contradict the lower bound in Theorem 2 as , where the last inequality follows from the fact that .
Let , and be such that is feasible w.r.t. and . Therefore . Let be a graph over vertices and edges for which , and the maximum degree is . Given such an input graph , the algorithm simulates on another graph, , that will be described momentarily, and returns the output of on . The graph is constructed from and has the following properties:
-
1.
has arboricity .
-
2.
Any query on can be answered by performing at most a single query to
-
3.
If is triangle free then is triangle free as well.
-
4.
If is -far from being triangle free then is -far from being triangle free as well.
is simply the graph with isolated vertices (observe that since ). Since , Item 4 follows. Items 1 and 3 follow from construction and the bound on the maximum degree of . Item 2 follows from the fact that any query to the graph is can be answered either by performing a single query the graph or to without performing any query to (in case the algorithm queries the subgraph induced on the additional isolated vertices of ).
4.3 Lower bound of for any and any feasible
Claim 12.
For any and any feasible w.r.t. such that , any algorithm for testing triangle-freeness must perform queries, where , and denote the number of edges, number of vertices and the arboricity of the input graph, respectively. This lower bound holds even if the algorithm is allowed two-sided error.
Proof.
The proof of this claim follows the same lines as the proof of Claim 11. Assume towards contradiction that there exists an algorithm for testing triangle-freeness that is allowed two-sided error and performs queries even for input graphs for which , where , and denote the number of edges, number of vertices and the arboricity of the input graph, respectively. We will show that there exists an algorithm for testing triangle-freeness (with two-sided error) for graphs in which and the maximum degree is , whose query complexity is , where and denote the number of edges and the number of vertices of the input graph of , respectively. This will contradict the lower bound in Theorem 2 as , where the last inequality follows from the fact that .
Let , and be such that is feasible w.r.t. and . Let be a graph over vertices and edges for which and for which the maximum degree is . Given such an input graph , the algorithm simulates on another graph, , that will be described momentarily, and returns the output of on . The graph is constructed from and has the following properties:
-
1.
has arboricity .
-
2.
Any query on can be answered by performing at most a single query to
-
3.
If is triangle free then is triangle free as well.
-
4.
If is -far from being triangle free then is at least -far from being triangle free as well.
is composed of the graph , a complete bipartite graph over vertices and a graph of isolated vertices. Observe that since and . The graph has vertices on each side, and and edges. Item 4 follows from the fact that . Observe that maximum degree of is at most since . Therefore, Items 1 and 3 follow from the fact that the arboricity of is and the bound on the maximum degree of . Item 2 follows from the fact that any query to the graph is can be answered either by performing a single query the graph or to without performing any query to (in case the algorithm queries the subgraphs or ).
References
- [1] Noga Alon. Testing subgraphs in large graphs. Random Struct. Algorithms, 21(3-4):359–370, 2002.
- [2] Noga Alon, Eldar Fischer, Michael Krivelevich, and Mario Szegedy. Efficient testing of large graphs. Combinatorica, 20(4):451–476, 2000.
- [3] Noga Alon, Tali Kaufman, Michael Krivelevich, and Dana Ron. Testing triangle-freeness in general graphs. SIAM J. Discret. Math., 22(2):786–819, 2008.
- [4] Talya Eden, Reut Levi, and Dana Ron. Testing bounded arboricity. ACM Trans. Algorithms, 16(2):18:1–18:22, 2020.
- [5] Talya Eden, Dana Ron, and Will Rosenbaum. The arboricity captures the complexity of sampling edges. In Christel Baier, Ioannis Chatzigiannakis, Paola Flocchini, and Stefano Leonardi, editors, 46th International Colloquium on Automata, Languages, and Programming, ICALP 2019, July 9-12, 2019, Patras, Greece, volume 132 of LIPIcs, pages 52:1–52:14. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2019.
- [6] Talya Eden, Dana Ron, and C. Seshadhri. Sublinear time estimation of degree distribution moments: The arboricity connection. SIAM J. Discret. Math., 33(4):2267–2285, 2019.
- [7] Talya Eden, Dana Ron, and C. Seshadhri. Faster sublinear approximation of the number of k-cliques in low-arboricity graphs. In Shuchi Chawla, editor, Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms, SODA 2020, Salt Lake City, UT, USA, January 5-8, 2020, pages 1467–1478. SIAM, 2020.
- [8] Oded Goldreich, Shafi Goldwasser, and Dana Ron. Property testing and its connection to learning and approximation. Journal of the ACM (JACM), 45(4):653–750, 1998.
- [9] Oded Goldreich and Dana Ron. Property testing in bounded degree graphs. Algorithmica, 32(2):302–343, 2002.
- [10] L. Gugelmann. Testing triangle-freeness in general graphs: Lower bounds. Bachelor thesis, Dept. of Mathematics, ETH, Zurich, 2006.
- [11] Tali Kaufman, Michael Krivelevich, and Dana Ron. Tight bounds for testing bipartiteness in general graphs. SIAM Journal on Computing, 33(6):1441–1483, 2004.
- [12] Michal Parnas and Dana Ron. Testing the diameter of graphs. Random Struct. Algorithms, 20(2):165–183, 2002.
- [13] T. Rast. Testing triangle-freeness in general graphs: Upper bounds. Bachelor thesis, Dept. of Mathematics, ETH, Zurich, 2006.
Appendix A Appendix
Theorem 3 (Multiplicative Chernoff’s Bound).
Let be identical independent random variables ranging in , and let . Then, for every , it holds that
(3) |