WorksMathematics
The inverse problem for the number of connected induced subgraphs
Abstract
For a finite graph , let be the number of nonempty vertex sets that induce a connected subgraph. We show that a positive integer equals for some finite connected graph if and only if . Every attainable value is attained on vertices, the least possible number, and needs six vertices. More precisely, for every each integer from to is the value of on a connected graph with exactly vertices. The proofs of these results are short and use no computer; computer calculations serve only as independent checks, and for two auxiliary results: the values on six to eight vertices, and the result on all connected subgraphs described below. The value falls into a gap above the path: a connected graph on vertices other than the path has at least more connected sets than . The values are realized by a recursive construction from cones, disjoint unions and a family of graphs that we call near-cones, starting from seven small graphs; it produces a graph with in time polynomial in . The question arose from a problem of Ordoñez in continuum theory, through a reduction by Camargo, Ordoñez and Ramírez, who found the values up to by a computer search. The proof is formalized in Lean 4. We also observe that a theorem of Czabarka, Székely and Wagner on subtrees reduces the corresponding problem for the number of all connected subgraphs to a finite computation, and we report its outcome. We did not find these results in the literature, but we make no claim of novelty or priority.
Introduction
Let be a finite simple graph. A connected set of is a nonempty set of vertices that induces a connected subgraph, and denotes the number of connected sets of . Equivalently, is the number of connected induced subgraphs of , where subgraphs induced by different vertex sets are counted separately even when they are isomorphic. For instance,
for the path, the complete graph, the star and the cycle; these and several other closed formulas are given by Vince [23 Example 1]. For a tree, is the number of subtrees. Write . If is connected with vertices, then
(Lemma 2.1(f)). The inverse problem for asks which positive integers are of the form . The question is only interesting for connected graphs: is additive over components, so every positive integer is of the edgeless graph on vertices.
Theorem 1.1. A positive integer equals for some finite connected graph if and only if
The upper bound in (1) shows that a connected graph with has at least vertices. This bound is attained with a single exception.
Theorem 1.2. Let be a positive integer with . The least number of vertices of a connected graph with is if , and if .
Both theorems follow from a statement about graphs with a prescribed number of vertices. For let
For integers we write . By (1), .
Theorem 1.3. (a) For every , : every integer with is for a connected graph with exactly vertices.
(b) For every , .
Part (a) fails for , since (Proposition 3.4). A computer search shows that part (b) fails for , since (Section 9).
How the problem arose
Where the exceptions come from. By (1), the values of on connected graphs with vertices lie in the intervals
and from on consecutive intervals overlap. The five integers lie in none of these intervals. The integer lies only in the interval for , and there it equals . It falls into a gap just above the path. A connected graph on vertices other than has at least connected sets (Proposition 3.2), so are never attained on vertices. For these gaps are covered by graphs with fewer vertices, but for the gap is the single value , and no other order covers it. Theorems 1.1–1.3 say that nothing else is lost.
The method. The proofs of Theorems 1.1–1.3 use no computer. Computer calculations appear in this paper only as independent checks of explicit counts (Section 9), in the census of the values on six to eight vertices (Section 6), and in Proposition 7.3 on all connected subgraphs, which is labelled as computer-assisted. The exclusions come from (1) and Proposition 3.2. For the realizations, the basic observation is that adding a universal vertex to a graph (taking the cone over ) adds exactly connected sets. So the cones over the graphs with vertices realize on vertices. Every graph on vertices has at least connected sets, so cones miss the values at the bottom of . To fill this gap we use near-cones (Definition 4.1). A near-cone is the cone over the disjoint union of a star and a graph , with one edge at the apex removed; removing that edge destroys exactly connected sets. Choosing the size of the star near makes the missing values reachable from by induction (Theorem 4.6). The induction starts at seven vertices and needs seven small graphs, which we call sporadic. The construction is explicit and yields a graph with on vertices in time polynomial in (Remark 5.1).
The work started from a question in continuum theory. A continuum is a nonempty compact connected metric space. A subcontinuum of a continuum is regular if , and Ordoñez [18] introduced the hyperspace of regular subcontinua of . He asked for which there is a continuum with exactly regular subcontinua [18 Problem 4.14]. Camargo, Ordoñez and Ramírez [7] showed that is finite, it is determined by its minimal elements, which have pairwise disjoint interiors and cover [7 Theorem 3.16]. This reduces the computation of to a count in a graph: is the number of connected sets of the intersection graph of these minimal elements, a finite connected graph [7], [2, Proposition 3.2]. They proved that [7 Proposition 3.18]. A computer search over all graphs with at most eight vertices showed that does not occur as a value of , while every integer from 17 to 255 does [7 Remark 3.20]. They asked whether every is the cardinality of some [7 Question 3.21].
The author was working on this question. In a companion paper [2] we answer it: the finite cardinalities of are exactly the positive integers outside . That paper realizes every finite connected graph by copies of the Knaster continuum glued at points. Hence the topological question is equivalent to the graph-theoretic one, which is Theorem 1.1. The graph-theoretic result does not depend on continuum theory and may be of independent interest. So we present it here on its own, with complete proofs and a more detailed explanation of the construction. Compared with [2], this paper also contains a new and more conceptual treatment of five vertices (Propositions 3.2 and 3.4) and some related observations (§ 6 and § 7).
Related work and the status of the result
The invariant has been studied mainly from the extremal point of view. For trees, is the number of subtrees, studied by Székely and Wang [21], among others. For general graphs, Dossou-Olory [10, 11, 12], Andriantiana and Dossou-Olory [5] (Nordhaus–Gaddum inequalities), and Haslegrave [14] studied the extremal values of and of related counts of connected sets. Vince [23] studied the growth of , and of the number of partitions of the vertex set into connected sets, along infinite families of graphs; he computed for several families and bounded it in terms of the number of edges. The invariant is a specialization of the subgraph component polynomial of Tittmann, Averbouch and Makowsky [22], which counts vertex sets by their size and by the number of components of the induced subgraph; counts the vertex sets inducing exactly one component. Pandey and Patra [19] studied extremal problems for the number of all connected subgraphs, not necessarily induced.
Inverse problems ask which values a graph invariant takes. Linek [15] showed that every positive integer is the number of independent sets of a bipartite graph. Wang and Yu [24] showed that all but 49 positive integers are Wiener indices of trees. Czabarka, Székely and Wagner [8] solved the inverse problem for several tree parameters; in particular, every positive integer except 34 explicit values, the largest being 89, is the number of subtrees of some tree. More recently, Alizadeh et al. [1] showed that every nonnegative integer except 1 is the Mostar index of a graph, and Bernert and Shaw [6] showed that, for each fixed , all sufficiently large integers are Steiner–Wiener -indices of graphs.
Status. We searched the literature for a classification of the values of on general connected graphs. The search used web and arXiv searches on connected sets, connected induced subgraphs, the subgraph component polynomial and inverse problems for graph invariants, and the references of the works above. We did not find Theorems 1.1–1.3. The only previous determination of these values that we know is the computational one of [7 Remark 3.20] for graphs with at most eight vertices. We also note that Theorem 1.1 can be deduced from the theorem of [8] on subtrees by a finite computation (Remark 7.1); that route uses a computer and gives neither Theorem 1.2 nor Theorem 1.3. The question is natural and the proof is elementary, so the result may be known, or folklore, in a form that we did not find. We therefore make no claim of novelty or priority, and we would be grateful for references.
Formalization, computations and organization
Theorems 1.1–1.3, the other results of § 2–§ 5 and § 6, and Lemma 7.2 are formalized in Lean 4 with Mathlib (§ 8). All explicit finite counts in this paper were also checked by computer (§ 9). The LaTeX source, the Lean formalization, the programs and their outputs are in the repository [3]. § 2 collects the counting rules. § 3 treats graphs with at most five vertices and proves the gap above the path. § 4 contains the construction, and § 5 the proofs of the main theorems. § 6 discusses the values on a fixed number of vertices. § 7 discusses subtrees, all connected subgraphs, and the topological interpretation.
Counting rules
Graphs are finite and simple; they need not be connected, and the graph with no vertices is allowed, with . For a graph we write for its number of vertices, and for the subgraph induced by . We write for the number of connected sets containing a vertex . For sets of integers and an integer we write and .
A vertex is universal if it is adjacent to every other vertex. The cone over a graph is obtained by adding one new vertex adjacent to every vertex of . A pendant vertex is a vertex of degree one. A spider consists of a vertex, its centre, and paths, its legs, each joined to the centre by an edge at one of its ends and otherwise disjoint from each other. The length of a leg is its number of vertices, not counting the centre. The paw is a triangle with one pendant vertex, and the diamond is minus an edge.
Lemma 2.1. Let , and be graphs.
(a) (Disjoint union.) If is the disjoint union of and , then .
(b) (Monotonicity.) If is a spanning subgraph of , then . If moreover some edge of is not an edge of , then .
(c) (Gluing at a vertex.) Suppose that for subgraphs with and . Then
(d) (Cone.) If is the cone over , then .
(e) (Almost-cone.) Let be a vertex of of degree in . If is obtained from by adding a vertex adjacent to every vertex of except , then
(f) (Range.) If is connected with vertices, then . The lower bound is attained by the path and the upper bound by .
Proof. (a) A connected set lies in one component.
(b) Every connected set of is connected in (compare [23 Lemma 1]). If is an edge of but not of , then is connected in but not in .
(c) No edge joins and , so a connected set avoiding lies in or in . Let be a connected set containing , and put . A path in between two vertices of stays in : it could leave only through , and it would have to return through , which a path cannot do. So each is a connected set of containing . Conversely, the union of a connected set of and one of , both containing , is connected. This gives a bijection between the connected sets of containing and such pairs .
(d) and (e) Let be the added vertex. The connected sets of avoiding are exactly those of . The sets containing are the sets with , and distinct sets give distinct sets . Hence , where is the number of sets such that is connected. This happens if and only if every component of contains a neighbour of : such components are joined to , and a component of without a neighbour of would be a component of not containing . In (d) the condition holds for all sets . In (e) the neighbours of are all vertices of except , so the condition fails exactly when is a component of , that is, when and contains no neighbour of . Such a set consists of and an arbitrary subset of the vertices that are neither nor neighbours of , so there are of them.
(f) Let be a spanning tree of . For vertices , possibly equal, let be the – path in . Its vertex set is connected in , hence in . Since is a tree, : an edge of joining two vertices of that are not consecutive on would close a cycle with a segment of . If , then and are the only vertices of degree one in , and if , then . So the set determines the unordered pair , and distinct pairs give distinct sets. This gives connected sets. The connected sets of are its intervals, since a set of vertices of that is not an interval misses a vertex lying between two of its vertices, and is then disconnected. There are only nonempty sets, and all of them are connected in . For trees, the lower bound is also part of [23 Theorem 4], where is bounded in terms of the number of edges.
Example 2.2. (i) A spider whose legs have lengths satisfies
a connected set containing the centre takes an initial segment of each leg, possibly empty, and a connected set avoiding the centre is an interval of one leg. For the star this gives .
(ii) Attach pendant vertices at each vertex of a complete graph . A connected set is either a single pendant vertex, or meets the clique in a nonempty set , together with any pendant vertices attached at . Hence . For the paw this gives .
(iii) Let be a disjoint union of stars with and at most vertices in all, and let be the complete graph on vertices with the edges of a copy of removed. A set is disconnected in if and only if with nonempty and disjoint and all pairs in edges of . This complete bipartite subgraph of is connected, so it lies in one star, and then or is the centre alone. Hence
For the diamond this gives 14.
(iv) The connected sets of the cycle , , are the whole vertex set and the proper cyclic intervals, so .
At most five vertices, and the gap above the path
Lemma 3.1. (a) , , and .
(b) , and .
Proof. (a) The connected graphs on at most three vertices are , , and . The six connected graphs on four vertices are the path, the star, the paw, the cycle, the diamond and , with by Lemma 2.1 and Example 2.2.
(b) By Lemma 2.1(a), the value of on a disconnected graph is the sum of its values on the components. A disconnected graph on four vertices has components with , , or vertices, giving , , and . Together with this gives . The sets and are found in the same way.
:::
Proposition 3.2 (The gap above the path). Let and let be a connected graph with vertices other than the path . Then
with equality for the spider with legs of lengths $1$, and $n-3.
Proof. Case 1: has a spanning tree that is not a path. By Lemma 2.1(b), , so it suffices to find connected sets of $S.
Path sets. By the proof of Lemma 2.1(f), the vertex sets of the paths of are distinct connected sets, and each of them induces a path in , so every vertex of has degree at most 2 there.
Branching sets. A tree whose vertices all have degree at most 2 is a path, so has a vertex of degree at least 3. Choose three distinct neighbours , , of and put . For each of the vertices , put . Let be the union of the star with centre and leaves , , and the path . It is a connected subgraph of with vertex set , so is a connected set, and so is . Moreover , because is a tree and a tree has no connected spanning subgraph other than itself. In and in the vertex has degree at least 3, so none of these sets is a path set.
Distinctness. The set differs from every , since . In the vertices outside are the vertices of outside . The edges of the star meet only , so such a vertex has degree 2 in if it is an inner vertex of , and degree 1 if it is the end . Hence is the only vertex of degree one of outside , and determines . So and the sets are distinct connected sets of , none of them a path set, and .
Case 2: every spanning tree of is a path. Fix one, with vertices in this order, and call it . Since is not a path, it has an edge that is not an edge of , with and . By Lemma 2.1(b), . The connected sets of are its intervals, and they remain connected in , so it suffices to count the connected sets of that are not intervals.
Let be such a set. As is not an interval, it is the union of at least two maximal intervals contained in , and no edge of joins two of them. The single extra edge can join only two of them, so is the union of exactly two maximal intervals, one containing and the other containing . Thus
Conversely, each such set is connected in and is not an interval. The quadruple is determined by : the indices and are the least and the greatest index in , the index is the least index above missing from , and is the least index above in . So the sets correspond bijectively to these quadruples. Put ; the conditions and give . There are choices of and choices of . For , there are choices of , so there are choices of . Hence the chord adds exactly connected sets. The factors satisfy , and . Since for positive integers , and ,
where the last inequality holds because is a concave function of that equals at and at . Hence .
Finally, by Example 2.2(i), the spider with legs has . □
Section 8 sketches a second proof of Proposition 3.2, by induction on connected sets, which is the one formalized in Lean.
Corollary 3.3. For , none of the integers lies in . In particular , and is not a value of on any connected graph.
Proof. The first assertion is Proposition 3.2, since . A connected graph with has vertices with , by Lemma 2.1(f). This forces . □
Proposition 3.4. .
Proof. The inclusion holds because and by Lemma 4.4(b) below, whose proof does not use this proposition. For , let be connected with five vertices. By Lemma 2.1(f), , and by Corollary 3.3. It remains to show that . We distinguish cases by the maximum degree of ; the table at the end of the proof summarizes them.
If , then is the cone over a graph with four vertices, and by Lemma 2.1(d). Since (Lemma 3.1), .
If , let be a vertex of degree 3, let be the vertex not adjacent to , and let . The degree of in is at least 1, since is connected, and at most 3. By Lemma 2.1(e) with , . If , then , that is, , 11 or 10 for , 2 or 3. A disconnected graph on four vertices has (Lemma 3.1(b)), so is connected. The six connected graphs on four vertices have the distinct values (proof of Lemma 3.1), so is the cycle , the star or the path , respectively. But has degree in , and has no vertex of degree 1, has no vertex of degree 2, and has no vertex of degree 3. So .
If , then is or , with or 21. In summary, where for the vertex has degree 3, , and is the degree in of the vertex not adjacent to $w:
| case | forces | impossible because | |
| , | |||
| , | , so | has no vertex of degree 1 | |
| , | , so | has no vertex of degree 2 | |
| , | , so | has no vertex of degree 3 | |
| 15 or 21 | — | is or |
Table 8.
The case analysis also gives a second proof that : a cone has , and in the case , would force , hence edgeless, contradicting .
Corollary 3.5. The values of on connected graphs that are at most 16 are 1, 3, 6, 7 and the integers from 10 to 15.
Proof. Graphs with at least six vertices have , and graphs with five vertices have , by Lemma 2.1(f) and Corollary 3.3. Apply Lemma 3.1.
Near-cones and the dyadic intervals
The construction works with all graphs, not only connected ones, because of the cone. If has vertices and , then the cone over is a connected graph with vertices and . So the natural auxiliary object is the set of values of on all graphs with vertices. Cones alone do not suffice. Every graph on vertices has at least connected sets, its singletons, so cones give only values with . They miss the values from to , at the bottom of the interval . Near-cones fill this gap.
Throughout this section we keep the two families of sets apart: consists of values on connected graphs with vertices, the sets we are after, and of values on all graphs with vertices, the auxiliary sets. The rules (C) and (N) below produce elements of from elements of and , and the rule (U) produces elements of .
Near-cones
Near-cones
Definition 4.1. Let , , and let be a graph with vertices. The near-cone is obtained as follows. Take a star with centre and leaves and a disjoint copy of , and add a vertex adjacent to every vertex except (Figure 1). Thus is the cone with apex over , with the edge removed. It is connected and has vertices.
Figure 1. The near-cone . The vertex is joined to and to every vertex of ; the centre of the star is joined only to the leaves .
For example, is the path , and , where is the graph with no vertices, is the cycle .
Lemma 4.2. Let .
(U) If and with , then . In particular .
(C) .
(N) If , and , then . More precisely,
Proof. (U) is Lemma 2.1(a); for the second statement add an isolated vertex. (C) is Lemma 2.1(d).
For (N), let be the cone with apex over . By Lemma 2.1(a),(d) and Example 2.2(i), . Now remove the edge to obtain . Sets avoiding or are connected in exactly when they are connected in . A set with is connected in . It is disconnected in exactly when contains no leaf , since is adjacent only to the leaves and every other vertex of is adjacent to . There are such sets : they contain , no leaf, and an arbitrary set of vertices of . Hence . This is also the case of Lemma 2.1(e). □
Seven sporadic graphs
Lemma 4.3. The seven graphs of Table 1 and Figure 2 have the stated values. Hence ; ; and .
Figure 2. The seven sporadic graphs of Table 1, with their values of and their numbers of vertices. In the graph with , the hexagon is drawn without four of its sides; these form the two removed paths with three vertices each.
Proof. The values 19, 25, 32 and 57 follow from Example 2.2; for 57, consists of two copies of .
For : a connected set is either one of the two pendant vertices, or a connected set of the diamond together with any of the pendant vertices attached at . The connected sets of are all nonempty subsets of its vertex set other than . Summing over all nonempty gives . Removing subtracts 2, and the pendant vertices add 2, giving 35.
For : glue and the star at (Lemma 2.1(c)). Let be the smaller side and the larger one. The connected sets of containing are and the sets with and ; there are . Also has , and the star contributes and .
For : let and glue with an edge at . In , the sets containing that are disconnected are , and , so ; and has . The edge contributes and 1. □
| graph | count | ||
| 19 | 5 | triangle with one pendant vertex at and one at | Ex. 2.2(ii): |
| 32 | 6 | triangle with two pendant vertices at and one at | Ex. 2.2(ii): |
| 35 | 6 | diamond , with one pendant vertex at and one at a vertex of degree 3 | see the proof |
| 57 | 6 | minus two disjoint paths with three vertices each | Ex. 2.2(iii): |
| 67 | 7 | with two pendant vertices at a vertex of the larger side | Lem. 2.1(c): |
| 90 | 7 | minus two edges , , with a pendant vertex at | Lem. 2.1(c): |
| 25 | 6 | spider with legs of lengths 1, 2, 2 | Ex. 2.2(i): |
Table 1. The sporadic graphs, drawn in Figure 2. The six graphs above the line fill the gaps left by the rules (U), (C) and (N) in Lemma 4.4 (Remark 4.5). The spider below the line realizes 25 on six vertices.
The base
Lemma 4.4. (a) , and .
(b) , and .
Proof. We apply the rules of Lemma 4.2 one order at a time, starting from Lemma 3.1 and . At each order we use only the inclusions already established at smaller orders, and we record only inclusions. We give the order in full; Table 2 lists every order, including , where the rules reproduce Lemma 3.1.
| cones (C) | near-cones (N), with | sporadic | by (U) and | ||
| 2 | — | — | ; so | ||
| 3 | — | — | ; so | ||
| 4 | — | ; so | |||
| 5 | ; so | ||||
| 6 | ; so | ||||
| 7 | ; so |
Table 2. The steps of the proof of Lemma 4.4. In the cone and near-cone columns, stands for the part of established in the previous rows. The last column lists and the sums with , that are needed, for instance and .
For , the rule (C) applied to gives . The rule (N) with gives . The sporadic graph with (Lemma 4.3) supplies the remaining value, so . By (U), and lie in . Together with , this gives . □ Remark 4.5. Two statements must be distinguished here: a value may fail to be produced by the rules (C) and (N), and a value may fail to be realized by any graph. Lemma 4.4 is sharp in the second sense. Indeed , because (Proposition 3.4) and a disconnected graph with five vertices has . Also , by the computation of § 9. In the first sense, even with every sporadic graph of smaller order available, the rules (C) and (N) produce on five vertices every value in except 19 and 25, on six vertices every value in except 32, 35 and 57, and on seven vertices every value in except 67 and 90 (§ 9). All these values except 25 do lie in , and the six sporadic graphs above the line in Table 1 realize them.
The induction
Theorem 4.6. For every :
The two assertions play different roles. The assertion provides auxiliary graphs, possibly disconnected, with every count from to . The assertion provides connected graphs for the upper half of the range. We prove from earlier (H)-statements, and then obtain by combining with the isolated-vertex rule (U). In the proof of the interval splits as
Proof. We use induction on . The induction hypothesis is for every with ; for this is Lemma 4.4(a). The statements are not used.
Proof of . By (C) and , . It remains to realize for . By (N), a pair realizes if it satisfies
(P1) , and ;
(P2) , where
Indeed, if is a graph with vertices and , then . When and , the hypothesis gives . Then (P2) holds for every as soon as it holds at the two endpoints, that is, as soon as
(P3) , which is equivalent to , and
(P4) , which is .
Condition (P3) asks for large and (P4) for small compared with . For we take the least satisfying (P3). This keeps close to , so that is large. For this choice leaves , where is not available, and we check (P2) directly from Lemmas 3.1(b) and 4.4(a), with the parameters of Table 3.
| by | |||||
| 8 | (2,4) | Lemma 3.1(b) | |||
| 8 | (3,3) | 6 | 3 | Lemma 3.1(b) | |
| 9 | (2,5) | Lemma 4.4(a) | |||
| 9 | (3,4) | Lemma 3.1(b) | |||
| 10 | (3,5) | , | , | Lemma 4.4(a) | |
| 10 | (2,6) | 4 | 62 | Lemma 4.4(a) | |
| 11 | (3,6) | Lemma 4.4(a) |
Table 3. The parameters of the near-cones in the proof of Theorem 4.6 for , covering . For the choice fails only at , since . The graphs with are those given by the proofs of Lemmas 3.1 and 4.4.
Now let , let be the least integer with , and put , so that (P1) and (P3) hold. Then , since . If , then and . If , minimality of gives , so and . In both cases and . For (P4),
because and for . Hence, for every with ,
and by the induction hypothesis , which applies since .
Proof of . By (U) and , . By , .
Example 4.7. Take . Then and , and the proof uses , with . So the near-cone , formed by the path and the vertices , is a connected graph with 8 vertices and
Seven vertices are not enough, since then .
Proofs of the main theorems
Proof of Theorem 1.3. (a) For this is Lemma 4.4(b), and for it is Theorem 4.6. (b) For this is Lemma 4.4(a), and for it is Theorem 4.6.
Proof of Theorem 1.2. Let and put , so that . A connected graph with fewer than vertices has , by Lemma 2.1(f). It remains to show that when , and that . If , then and by Lemma 3.1. If and , then and by Proposition 3.4. If , then and by Theorem 1.3(a). Finally by Proposition 3.4, and the spider with legs shows (Lemma 4.3). Table 4 lists the witnesses for the values below , where the order is given by the finite base rather than by the induction. □
| least order | a connected graph with of least order | |
| , , paw, , diamond, (Lemma 3.1) | ||
| Table 2, row , and Appendix A; is sporadic | ||
| the spider with legs (Lemma 4.3) | ||
| Lemma 4.4(b) for ; Theorem 4.6 and Remark 5.1 for |
Table 4. Least orders and witnesses (Theorem 1.2). For each the least order is , except for .
Proof of Theorem 1.1. If for a connected graph , then by Corollary 3.5. Conversely, every positive integer outside this set is a value of on a connected graph by Theorem 1.2. □
Remark 5.1 (An algorithm). The proofs are constructive. For and , the following recursive procedure returns a graph with vertices and , which is connected when .
Input: integers and , in binary. Output: the edge list of on the vertices .
If , return the graph given by the proof of Lemma 4.4, from a fixed table.
If , return together with an isolated vertex.
If , return the cone over .
Otherwise put , choose as in the proof of Theorem 4.6 (Table 3 for , the least with for ), and return . Here if , and is the graph given by the proof of Lemma 3.1 or Lemma 4.4, from a fixed table, if .
The arguments of the recursive calls are admissible: in (2), ; in (3), ; and in (4), by the proof of Theorem 4.6. Each call makes at most one recursive call, with fewer vertices, so there are at most calls. We count bit operations. Apart from its recursive call, a call compares and subtracts integers of at most bits, finds by at most trials on integers of bits, and computes , using bit operations in all. It also adds at most edges: none in (2), in (3), and in (4). The graph returned by the recursive call keeps its vertices , and the new vertices receive the next labels, so nothing is relabelled. With vertex labels of bits, the new edges take bits to write. The tables used in (1) and (4) have constant size. Hence is computed with bit operations, and its output, a graph with at most edges, has bits. For , the graph , with , is connected, has the least possible number of vertices, and is found with bit operations, in particular in time polynomial in . For the procedure does not apply, since ; a connected graph with six vertices and is given by the proof of Lemma 4.4(b). The procedure cannot simply be extended to , because . For example, is realized on vertices. § 9 reports a check of this procedure.
Values on a fixed number of vertices
Theorem 1.3 describes the upper half of the range (1). The lower half behaves less regularly. Table 5 gives for . For the table follows from Lemma 3.1 and Proposition 3.4; for it comes from the computer census of § 9, which confirms [7 Remark 3.20].
| integers in not in | |||
| 1 | 1 | 1 | — |
| 2 | 3 | 3 | — |
| 3 | 6 | 7 | — |
| 4 | 10 | 15 | — |
| 5 | 15 | 31 | 16, 25 |
| 6 | 21 | 63 | 22, 23, 26 |
| 7 | 28 | 127 | 29, 30, 31, 35 |
| 8 | 36 | 255 | 37, 38, 39, 40, 43, 50, 55 |
Table 5. The sets for . For , the first missing values are (Corollary 3.3).
Proposition 6.1. Let . Then and , none of the integers lies in , and every integer in lies in . In particular, at least integers of are not values of on connected graphs with vertices, and all of them are smaller than .
Proof. Combine Proposition 3.2, Corollary 3.3 and Theorem 1.3(a). □
So the number of missing values in grows at least linearly. For the missing values are the gap above the path together with one or three further values.
Question 6.2. Determine for all . In particular, is the number of integers in bounded by a linear function of ?
Related counts
Subtrees
For a tree , is the number of subtrees of , and Czabarka, Székely and Wagner [8] showed that every positive integer outside the set
of 34 exceptions is the number of subtrees of some tree. Thus allowing cycles reduces the 34 exceptions for trees to the six exceptions of Theorem 1.1.
Remark 7.1 (A computer-assisted route). The theorem of [8] gives a second proof of Theorem 1.1. Every positive integer outside is a value of on a tree. The elements of other than 2, 4, 5, 8, 9, 16 are values of on connected graphs with at most seven vertices, by Lemma 3.1 and Appendix A. With Corollary 3.5, this gives Theorem 1.1. This route relies on the computer-assisted parts of [8] and on a census of small graphs, and it gives no information on the number of vertices.
All connected subgraphs
A connected subgraph of is a connected graph with and . Let be the number of connected subgraphs of ; Pandey and Patra [19] call it the subgraph index and study its extremal values. Let denote the line graph of .
Lemma 7.2. Let be a graph with vertices.
(a) .
(b) , with equality if and only if is a forest.
(c) If is obtained from by adding an edge, then .
Proof. (a) The connected subgraphs without edges are the single vertices. A connected subgraph with a nonempty edge set has vertex set , the set of ends of edges of , and the graph is connected if and only if is a connected set of .
(b) Each connected set gives the connected subgraph . If is a forest, then is a forest, so a connected spanning subgraph of must be itself. If has a cycle, the cycle minus one of its edges is a connected subgraph that is not induced.
(c) All connected subgraphs of remain, and the new edge with its two ends is a new one. □
Proposition 7.3. A positive integer equals for some finite connected graph if and only if
Proof (computer-assisted). By Lemma 7.2(b) and [8], every positive integer outside is a value of on a tree, and . It remains to decide which elements of are values of . We separate the reduction, which is proved, from the finite search, which is a computation.
Reduction. Let be connected with vertices and . By Lemma 7.2(b) and Lemma 2.1(f), , so . Let be a spanning tree of , and add the edges of to one at a time. This gives connected graphs , each obtained from the previous one by adding one edge. By Lemma 7.2(c), , and by Lemma 7.2(b). So every connected graph with is reached from a tree with and at most 12 vertices by adding one edge at a time, and every intermediate graph also has . Being reachable in this way does not depend on the labeling, so the search may be carried out up to isomorphism.
Search. Level 0 consists of the trees with at most 12 vertices and , one from each isomorphism class; all trees are generated by NetworkX [13]. There are 94 of them: 1, 1, 1, 2, 3, 6, 11, 20, 24, 17, 6 and 2 trees on 1, 2, , 12 vertices, respectively. Level consists of the graphs obtained from a graph of level by adding one missing edge. A graph is discarded if , or if it is isomorphic to a graph found before. The isomorphism test compares Weisfeiler–Lehman hashes and then tests exact isomorphism. Levels 1, 2, 3, 4 contain 69, 13, 1 and 0 graphs, so the search stops. It finds 177 pairwise non-isomorphic connected graphs with . By the reduction, every connected graph with is isomorphic to one of them, and their values of are all integers in except the elements of . The 17 elements of are realized by the graphs of Table 6. The values of were computed in two independent ways, by Lemma 7.2(a) and by testing all edge subsets; Section 9 describes the programs and the machine-readable list of the 177 graphs. □
| edges | edges | ||||
| 18 | 4 | 01 02 03 13 (paw) | 54 | 5 | 01 02 03 13 24 34 |
| 26 | 5 | 01 02 13 24 34 () | 60 | 7 | 01 02 12 14 23 45 56 |
| 27 | 5 | 01 02 12 13 34 | 65 | 8 | 01 02 15 23 34 47 56 67 |
| 29 | 5 | 01 02 04 13 34 | 68 | 7 | 01 02 05 14 23 45 46 |
| 31 | 5 | 01 02 03 13 34 | 72 | 7 | 01 02 12 13 15 34 56 |
| 33 | 4 | 01 02 03 12 13 (diamond) | 77 | 7 | 01 02 03 04 15 16 56 |
| 42 | 6 | 01 02 05 14 23 45 | 89 | 8 | 01 02 13 15 23 24 56 67 |
| 43 | 6 | 01 02 14 23 25 45 | |||
| 50 | 7 | 01 02 14 23 36 45 56 | |||
| 52 | 6 | 01 02 03 05 14 45 |
Table 6. Connected graphs realizing, as values of , the 17 subtree exceptions of [8] that are values of . Each graph has the least possible number of vertices and, among those, the least number of edges. Vertices are , and denotes the edge joining and .
For instance, , the paw has , and the diamond has , where , the cone over , is the line graph of the diamond. Unlike Theorem 1.1, Proposition 7.3 depends on computer calculations, both through [8] and through our search. A proof in the spirit of Section 4 would be of interest.
The topological interpretation
As explained in § 1.1, Theorem 1.1 answers [7 Question 3.21]. Combined with the reduction of [7] and a realization of every finite connected graph by copies of the Knaster continuum glued at points, it gives the following result of the companion paper.
Theorem 7.4 ([2 Theorem A]). A positive integer is the number of regular subcontinua of some metric continuum if and only if . For every such a continuum can be chosen as the union of copies of the Knaster continuum, any two of which meet in at most one point, and no continuum with exactly regular subcontinua has fewer minimal regular subcontinua.
Formal verification in Lean
The results of § 2–§ 5 and 6 and Lemma 7.2 are formalized in Lean 4 [9] with Mathlib [16], in the library ConnectedSets in the directory lean of the repository [3] of this paper. The file MANIFEST.txt there lists the SHA-256 checksums of all files of this version, including the Lean sources and the scripts of § 9. The toolchain is Lean v4.35.0 with Mathlib commit 6015dbbfc399f4548bafd46f9560ff61595fd328, both fixed in the files lean-toolchain, lakefile.toml and lake-manifest.json. In the directory lean, the commands
lake exe cache get lake build lake env lean CheckAxioms.lean
download a compiled Mathlib (this step is optional), build the library, and print the axioms of every statement of Table 7. The library has 20 modules and 4623 lines. Eleven of them (Basic, Defs, Rules, Transport, Checker, Five, Sporadic, Base, Intervals, Induction and Main; 2201 lines) are the graph-theoretic part of the formalization written for the companion paper [2], which is in the directory lean of [4]. They are copied with the namespace renamed and the comments renumbered, and the scripts in lean/gen regenerate the modules Sporadic, Base and Intervals byte for byte. The other modules are new: Gap and Path (Proposition 3.2), Spider, Small (Lemmas 2.1(b) and 3.1, Corollaries 3.3 and 3.5, Propositions 3.4 and 6.1, and Theorem 1.2 for every ), Glue (Lemma 2.1(c)), Linegraph (Lemma 7.2), Extras, and Paper, which states the results with the numbering of this paper.
| this paper | declarations in ConnectedSets/Paper.lean |
| Theorems 1.1, 1.2, 1.3 | theorem_1_1, theorem_1_1_type, theorem_1_2, theorem_1_3, theorem_1_3_sharp |
| formulas of Section 1 | section_1_formulas (path, complete graph, star) |
| Lemma 2.1(a)–(f) | lemma_2_1_a, . . . , lemma_2_1_f |
| Lemma 3.1 | lemma_3_1_a, lemma_3_1_b |
| Proposition 3.2 | proposition_3_2, proposition_3_2_spider |
| Corollaries 3.3, 3.5; Proposition 3.4 | corollary_3_3, corollary_3_5, proposition_3_4 |
| Lemmas 4.2, 4.3, 4.4 | lemma_4_2, lemma_4_3, lemma_4_4_a, lemma_4_4_b |
| Remark 4.5 () | remark_4_5 |
| Theorem 4.6, Example 4.7 | theorem_4_6, example_4_7 |
| Proposition 6.1 | proposition_6_1 |
| Lemma 7.2(a)–(c) | lemma_7_2_a, lemma_7_2_b, lemma_7_2_c |
Table 7. Correspondence between the results of this paper and the Lean formalization.
For a graph on a finite type , the number is the number of finite sets of vertices such that the induced graph G.induce S is connected; Mathlib’s notion of a connected graph includes nonemptiness. The statement InV m k says that some connected graph on Fin m has , that is, , and InLam m k says . Paths, forests and line graphs are Mathlib’s pathGraph, IsAcyclic and lineGraph. The number counts the pairs of a finite set of vertices and a finite set of edges of with both ends in such that the graph with vertex set and edge set is connected. Two of the statements of the module Paper read as follows; there T n is .
theorem theorem_1_1 (k : ℕ) (hk : 0 < k) :
(∃ n, ∃ G : SimpleGraph (Fin n), G.Connected ∧ c G = k) ↔
k ∉ ({2, 4, 5, 8, 9, 16} : Finset ℕ)
theorem proposition_3_2 (G : SimpleGraph V) (hG : G.Connected) :
(IsEmpty (pathGraph (Fintype.card V) ≃g G) →
T (Fintype.card V) + (Fintype.card V - 3) ≤ c G) ∧
(c G = T (Fintype.card V) ↔ Nonempty (pathGraph (Fintype.card V) ≃g G))
Table 7 lists the correspondence between this paper and the module Paper; all its declarations are in the namespace ConnectedSets.Paper.
The formal proofs follow the paper, with four differences.
Proposition 3.2 is proved by a different argument, an induction on connected sets that avoids spanning trees. Call a vertex of a connected set an end of if has exactly one connected subset containing of each size. An end forces to have exactly connected subsets, and it gives an enumeration of in which two vertices are adjacent exactly when they are consecutive. Conversely, if has exactly connected subsets, then every vertex whose removal leaves connected is an end. In the induction, remove such a vertex . If has the minimum number of connected subsets, it is a path, and the intervals of this path that form a connected set together with give at least connected sets containing , unless itself has the minimum. Otherwise the induction hypothesis applies to . This gives or for every connected graph with vertices, and exactly when is isomorphic to pathGraph n.
In Proposition 3.4 the values 16 and 25 are excluded by a kernel computation (
decide +kernel) over all labeled graphs on five vertices, not by the case analysis of the paper; for 16 the formalized Corollary 3.3 gives a second proof. The computation uses a bitmask counting procedure proved equal to . The same procedure checks the counts of the sporadic graphs, the 353 derivations of Lemma 4.4, the exclusions and of Lemma 3.1 (over all labeled graphs on three and four vertices), and in Remark 4.5.
Lemma 2.1(c) is formalized inside one graph: the vertex set is covered by sets and with and no edge between and , and and play the roles of and .
(4) Lemma 2.1(e) and the near-cone formula of Lemma 4.2 are stated without subtraction, for instance as , where is the size of a finite set listing the neighbours of .
Not formalized are the general formulas of Example 2.2, whose instances used in the proofs are checked by the kernel; the computer census behind Table 5 for , and with it ; the statements of Remark 4.5 about which values the rules produce; the running time in Remark 5.1; Remark 7.1 and Proposition 7.3, which rely on the computer-assisted theorem of [8] and on our search; and Appendix A. Theorem 7.4 is formalized in the companion formalization [2].
The library uses neither sorry nor native_decide and declares no axioms. Its 31 statements in the module Paper depend only on the axioms propext, Classical.choice and Quot.sound, and one of them, theorem_1_2_minOrder, depends on none. We checked the library in four ways, recorded in the file CHECKS.txt of the formalization. It builds from an empty build directory, and a copy of the sources in a fresh directory builds with the same output. The declarations of all modules were replayed through the kernel with leanchecker, and the whole import closure, including Lean core and Mathlib, with leanchecker --fresh. Finally, the statements of Paper were exported together with everything they depend on, 10538 declarations in all, and checked by the independent type checker nanoda, with only the three axioms above permitted; no errors were reported.
Computational verification
The proofs of Theorems 1.1–1.3 do not use a computer. We checked every explicit finite count in this paper, and the computer-assisted result of [7], with programs written for this purpose. The programs for the census of small graphs, the construction and the subtrees, with their outputs, are in the repository [4] of the companion paper; the file CHECKS.md there maps each computational statement of [2] to the program that checks it. The scripts for Proposition 7.3 and Appendix A, the construction program construct.py with its certificate for Lemma 4.4, and the outputs are in the directories code and data of the repository [3] of this paper.
Counting. We compute in three ways: by testing all nonempty vertex sets; by the ESU enumeration scheme [25], which lists each connected set once; and by a recurrence over vertex sets. In the recurrence, if is connected and otherwise. The component of containing is the only connected set with and no edge between and . Hence , the sum running over sets with and no edge between and .
Graphs on at most eight vertices. Program A takes the graphs on at most seven vertices from the atlas of Read and Wilson [20], as distributed with NetworkX [13]. It extends each of the 1044 graphs on seven vertices, connected or not, by every nonempty neighbourhood of a new vertex, and removes isomorphic copies in two independent ways. Both give the 11117 connected graphs on eight vertices of OEIS A001349 [17]. Program B, written in C, uses no atlas and no isomorphism test. It runs over all labeled graphs on at most seven vertices, and over the graphs on eight vertices obtained by extending the labeled graphs on seven vertices with nonincreasing degree sequence. Its numbers of labeled connected graphs agree with OEIS A001187. The two programs give the same sets for , as in Table 5. Every value in except occurs, and every value in occurs on at most seven vertices. This confirms [7, Remark 3.20. Program B also rederives each witness of Appendix A by brute force over all labeled graphs.
The construction. We implemented Lemma 4.4 and the procedure of Remark 5.1 literally, and checked the gaps stated in Remark 4.5. An independently written program re-checked each of the 353 derivations for . For every , and for 300 random , we built the resulting graph and counted its connected sets. For every and every , the graph has exactly vertices, is connected when , and has ; in total 130708 graphs were checked.
Subtrees. We re-verified the list of [8] from all trees with at most 18 vertices, generated and counted in two independent ways. A tree with vertices has at least subtrees, so this determines the subtree counts below 190.
All connected subgraphs. The script code/f_values.py of [3] carries out the search in the proof of Proposition 7.3; the command python3 f_values.py 89 runs it, with Python 3.13 and NetworkX 3.7, in about two seconds. During the search it computes through Lemma 7.2(a), counting the connected sets of the line graph with the ESU scheme and stopping as soon as the count exceeds 89. For every graph found it then recomputes by testing all nonempty edge subsets with a union-find structure; the two methods agree on all 177 graphs. The script prints the number of trees of each order at level 0, the size of each level, and the missing values, as stated in the proof (output file f_values_output.txt). It also writes the file f_graphs_le_89.csv, which lists the 177 graphs with , , the numbers of vertices and edges, and the edge list. Together with the reduction in the proof, this list certifies both that the values in occur and that the elements of do not. A separate program in C, f_edge_subsets.c, recomputed by vertex subsets and by edge subsets for all 996 connected graphs with at most seven vertices of the atlas, independently of the search. It agrees with the values below 36, where those graphs suffice, since for .
AI disclosure
Artificial intelligence was used extensively in this work, both to obtain the results and to check them.
Solving and proving. The main model used to solve the problem and to prove the theorems was Claude Opus 5.5 (Anthropic). In an iterative process directed by the author, it carried out most of the exploratory proof development, including the near-cones of § 4 and the arguments of § 3. It also wrote and ran the programs of § 9, carried out the literature search of § 1.2, and generated most of the first draft of this manuscript and of the Lean 4 formalization of § 8.
Reading and checking. ChatGPT-Astra (OpenAI) was used, together with the author, to read the manuscript and check the arguments. AI was used extensively for proofreading and proof checking, and for repeated rounds of checking the arguments and comparing the proofs with one another, for instance the two proofs of Proposition 3.2 and the two exclusions of 16 on five vertices. In each round the author, with ChatGPT-Astra, reviewed the text, the proofs and the supplementary material and sent feedback, and Claude revised them.
The author's role. The author formulated the problem, which arose from Questions 3.5 and 3.21 of [7], provided the mathematical context and constraints, and steered the iterations through prompts and feedback. The author also supplied ideas and suggested strategies, selected and revised the outputs, and reviewed the final arguments.
The explicit finite counts are checked by programs (§ 9), and the results listed in Table 7 are formally verified in Lean (§ 8). No independent expert has yet verified the proofs. The author takes full responsibility for the content.
Witnesses for the values from 17 to 127
A witness for an integer is a connected graph with . We record witnesses as graph6 strings. A graph6 string is a standard printable encoding of a finite labeled graph with vertex set . For its first character is the one with ASCII code . The remaining characters encode the entries above the diagonal of the adjacency matrix, read column by column, that is, in the order , , , , , . These bits are padded with zeros to a multiple of six, and each group of six bits, read as a binary number , is written as the character with ASCII code . For example, D?{ encodes the star with centre 4: the bits of ? and { are 000000 and 111100, so the edges are .
Canonical strings. A graph6 string depends on the labeling. For a fixed all graph6 strings have the same length, and we compare them lexicographically by their ASCII characters. The canonical graph6 string of a graph is the least graph6 string among all its labelings with vertex set ; two graphs are isomorphic if and only if their canonical strings coincide.
Witness rule. For each the table gives a witness of least possible order ; among those, of least number of edges; and among those, the one with the least canonical graph6 string. The table lists , and the canonical string. By Theorem 1.2, except for . Program B of Section 9 rederives every entry by brute force over all labeled graphs on at most seven vertices. Edge lists are in the file data/witnesses_small.csv of [3]. The script code/check_witnesses.py of [3] reads this table from the \LaTeX source of the paper, decodes each string with the rule above, and checks that it gives a connected graph with vertices and exactly connected sets; all 111 rows pass.
| graph6 | graph6 | graph6 | |||||||
| 17 | 5 | D@s | 54 | 6 | EB~o | 91 | 7 | F?Nv_ | |
| 18 | 5 | DJc | 55 | 6 | EFz_ | 92 | 7 | F?Fno | |
| 19 | 5 | DBk | 56 | 6 | EFzg | 93 | 7 | F@Q~o | |
| 20 | 5 | D?{ | 57 | 6 | EL~o | 94 | 7 | F?Fnw | |
| 21 | 5 | D@{ | 58 | 6 | EFzw | 95 | 7 | F?]~_ | |
| 22 | 5 | DJk | 59 | 6 | EF~w | 96 | 7 | F@Vn_ | |
| 23 | 5 | DB{ | 60 | 6 | E]~o | 97 | 7 | F@N^W | |
| 24 | 5 | DLs | 61 | 6 | E]~w | 98 | 7 | F?Nvo | |
| 25 | 6 | E@QW | 62 | 6 | E^~w | 99 | 7 | F@vf_ | |
| 26 | 5 | DFw | 63 | 6 | E~~w | 100 | 7 | F?B~o | |
| 27 | 5 | DF{ | 64 | 7 | F?DnO | 101 | 7 | F?B~w | |
| 28 | 5 | DN{ | 65 | 7 | F??^o | 102 | 7 | F?F~w | |
| 29 | 5 | D]{ | 66 | 7 | F?C^W | 103 | 7 | F?N~o | |
| 30 | 5 | D^{ | 67 | 7 | F?KuW | 104 | 7 | F?^vo | |
| 31 | 5 | D~{ | 68 | 7 | F?Cng | 105 | 7 | F@^vo | |
| 32 | 6 | E?NW | 69 | 7 | F?@ | w | 106 | 7 | F@vv_ |
| 33 | 6 | E@Ug | 70 | 7 | F??Fw | 107 | 7 | F?^~o | |
| 34 | 6 | EJ]G | 71 | 7 | F??Nw | 108 | 7 | FBnnO | |
| 35 | 6 | E@Uw | 72 | 7 | F?Cfw | 109 | 7 | F@vvo | |
| 36 | 6 | E?No | 73 | 7 | F??^w | 110 | 7 | FBzv_ | |
| 37 | 6 | E?Bw | 74 | 7 | F?C^w | 111 | 7 | F@vvw | |
| 38 | 6 | E?Fw | 75 | 7 | F@Q^G | 112 | 7 | F?~v_ | |
| 39 | 6 | E@Rw | 76 | 7 | F?Cnw | 113 | 7 | F?~vg | |
| 40 | 6 | E?Nw | 77 | 7 | F??~w | 114 | 7 | F@~vg | |
| 41 | 6 | E@Nw | 78 | 7 | F?Dno | 115 | 7 | F?~vw | |
| 42 | 6 | E?^o | 79 | 7 | F@Um_ | 116 | 7 | F?~~w | |
| 43 | 6 | E@Vw | 80 | 7 | F?LVw | 117 | 7 | F@~~w | |
| 44 | 6 | E?^w | 81 | 7 | F@Q^W | 118 | 7 | FFzng | |
| 45 | 6 | E@vg | 82 | 7 | F?Dnw | 119 | 7 | FFzfw | |
| 46 | 6 | EBn_ | 83 | 7 | F?@~o | 120 | 7 | FFznw | |
| 47 | 6 | E@vo | 84 | 7 | F?D~o | 121 | 7 | FFz~o | |
| 48 | 6 | EBz_ | 85 | 7 | F?@~w | 122 | 7 | FFz~w | |
| 49 | 6 | E@vw | 86 | 7 | F?Fng | 123 | 7 | FF~~w | |
| 50 | 6 | EJfw | 87 | 7 | F@Umg | 124 | 7 | F]~vw | |
| 51 | 6 | E?~o | 88 | 7 | F?NNg | 125 | 7 | F]~~w | |
| 52 | 6 | E?~w | 89 | 7 | F?N^_ | 126 | 7 | F^~~w | |
| 53 | 6 | E@~w | 90 | 7 | F@]v_ | 127 | 7 | F~~~w |
Table 1 (PDF p. 20).
Independent researcher
Email address: [email protected]
References
- [1]Y. Alizadeh, N. Bašić, I. Damnjanović, T. Došlić, T. Pisanski, D. Stevanović, and K. Xu, Solving the Mostar index inverse problem, preprint, arXiv:2312.13083.arxiv.org/abs/2312.13083
- [2]L. Alves de Almeida, All finite cardinalities of the hyperspace of regular subcontinua, preprint, version 2.3, 2026, available in [4].
- [3]L. Alves de Almeida, The inverse problem for the number of connected induced subgraphs: paper, Lean formalization and programs, GitHub repository, https://github.com/LucasAlves8Sp/THE-INVERSE-PROBLEM-FOR-THE-NUMBER-OF-CONNECTED-INDUCED-SUBGRAPHS.
- [4]L. Alves de Almeida, All finite cardinalities of the hyperspace of regular subcontinua: paper, programs and Lean formalization, GitHub repository, https://github.com/LucasAlves8Sp/ALL-FINITE-CARDINALITIES-OF-THE-HYPERSPACE-OF-REGULAR-SUBCONTINUA.
- [5]E. O. D. Andriantiana and A. A. V. Dossou-Olory, Nordhaus–Gaddum inequalities for the number of connected induced subgraphs in graphs, preprint, arXiv:2006.01187.
- [6]C. Bernert and J. Shaw, The inverse problem for the Steiner–Wiener index via additive number theory, preprint, 2026, arXiv:2603.17559.
- [7]J. Camargo, N. Ordoñez, and D. Ramírez, On the hyperspaces of meager and regular continua, Appl. Gen. Topol. 25 (2024), no. 2, 385–406. doi:10.4995/agt.2024.20116.DOI
- [8]É. Czabarka, L. A. Székely, and S. Wagner, The inverse problem for certain tree parameters, Discrete Appl. Math. 157 (2009), no. 15, 3314–3319. doi:10.1016/j.dam.2009.07.004.DOI
- [9]L. de Moura and S. Ullrich, The Lean 4 theorem prover and programming language, in: Automated Deduction – CADE 28, Lecture Notes in Comput. Sci. 12699, Springer, Cham, 2021, 625–635. doi:10.1007/978–3–030–7985–5_37.DOI
- [10]A. A. V. Dossou-Olory, Graphs and unicyclic graphs with extremal number of connected induced subgraphs, preprint, arXiv:1812.02422.
- [11]A. A. V. Dossou-Olory, Cut and pendant vertices and the number of connected induced subgraphs of a graph, preprint, arXiv:1910.04552.
- [12]A. A. V. Dossou-Olory, On the maximum number of connected induced subgraphs of a graph, preprint, 2023, arXiv:2303.01964.
- [13]A. A. Hagberg, D. A. Schult, and P. J. Swart, Exploring network structure, dynamics, and function using NetworkX, in: Proceedings of the 7th Python in Science Conference (SciPy 2008), 11–15.
- [14]J. Haslegrave, The number and average size of connected sets in graphs with degree constraints, preprint, arXiv:2105.13332.
- [15]V. Linek, Bipartite graphs can have any number of independent sets, Discrete Math. 76 (1989), 131–136. doi:10.1016/0012-365X(89)90306–3.DOI
- [16]The Mathlib Community, The Lean mathematical library, in: Proceedings of the 9th ACM SIGPLAN International Conference on Certified Programs and CPPC (CPP 2020), 367–381. doi:10.1145/3372885.3373824.
- [17]OEIS Foundation Inc., The On-Line Encyclopedia of Integer Sequences, sequences A001187 and A001349, https://oeis.org.
- [18]N. Ordoñez, The hyperspace of regular subcontinua, Topology Appl. 234 (2018), 415–427. doi:10.1016/j.topol.2017.11.038.DOI
- [19]D. Pandey and K. L. Patra, On the number of connected subgraphs of graphs, Indian J. Pure Appl. Math. 52 (2021), no. 2, 571–583. doi:10.1007/s13226–021–00061–4.DOI
- [20]R. C. Read and R. J. Wilson, An Atlas of Graphs, Oxford University Press, Oxford, 1998.
- [21]L. A. Székely and H. Wang, On subtrees of trees, Adv. in Appl. Math. 34 (2005), 138–155. doi:10.1016/j.aam.2004.07.002.
- [22]P. Tittmann, I. Averbouch, and J. A. Makowsky, The enumeration of vertex induced subgraphs with respect to the number of components, European J. Combin. 32 (2011), no. 7, 954–974. doi:10.1016/j.ejc.2011.03.017.DOI
- [23]A. Vince, Counting connected sets and connected partitions of a graph, Australas. J. Combin. 67 (2017), no. 2, 281–293.
- [24]H. Wang and G. Yu, All but 49 numbers are Wiener indices of trees, Acta Appl. Math. 92 (2006), 15–20. doi:10.1007/s10440–006–9037–2.DOI
- [25]S. Wernicke, Efficient detection of network motifs, IEEE/ACM Trans. Comput. Biol. Bioinform. 3 (2006), no. 4, 347–359. doi:10.1109/TCBB.2006.51.DOI

