SciELO - Scientific Electronic Library Online

 
vol.40 issue1Polynomial stability of a thermoelastic system with linear boundary dissipation and second soundLie algebras whose Lie groups have negative sectional curvature author indexsubject indexarticles search
Home Pagealphabetic serial listing  

Services on Demand

Journal

Article

Indicators

Related links

  • On index processCited by Google
  • Have no similar articlesSimilars in SciELO
  • On index processSimilars in Google

Share


Revista Integración

Print version ISSN 0120-419XOn-line version ISSN 2145-8472

Integración - UIS vol.40 no.1 Bucaramanga Jan./June 2022  Epub Aug 24, 2022

https://doi.org/10.18273/revint.v40n1-2022004 

Original articles

A new sum of graphs and caterpillar trees

Una nueva suma de grafos y árboles oruga

N. B. HUAMANÍ a  

JOICE S. DO NASCIMENTO b  

A. CONDORI c  

a Universidad Nacional de San Cristóbal de Huamanga, Departamento de Matemática y Física, Ayacucho, Perú. E-mail: nelson.berrocal@unsch.edu.pe

b Instituto de Matemática e Estadistica, Univerdidade do Estado do Rio de Janeiro, Rio de Janeiro, Brazil. E-mail: joicesantos@ime.uerj.br

c Universidad Nacional de San Cristóbal de Huamanga, Departamento de Matemática y Física, Ayacucho, Perú. E-mail: alexander.condori@unsch.edu.pe.


Abstract.

Caterpillar trees, or simply Caterpillar, are trees such that when we remove all their leaves (or end edge) we obtain a path. The number of nonisomorphic caterpillars with n ≥ 2 edges is 2 n−3 + 2 ⌊(n−3)/2⌋ . Using a new sum of graphs, introduced in this paper, we provided a new proof of this result.

MSC2010:

05C30, 05C76, 05C05, 05C60.

Keywords: Graph; Caterpillar trees; tree graphs; sum of graphs

Resumen.

Árboles oruga, o simplemente oruga, son árboles tales que cuando les quitamos todas sus ramas (o arista final) obtenemos un camino. La cantidad de orugas no isomorfas con n ≥ 2 aristas es 2 n−3 + 2 ⌊(n−3)/2⌋ . Usando una nueva suma de grafos, introducida en este artículo, proporcionamos una nueva prueba de este resultado.

Palabras clave: Grafo; árboles oruga; grafo árbol; suma de grafos

1. Introduction

The Caterpillar trees were initially studied by F. Harary and A. J. Schwenk [1] in a series of articles. The name was introduced by Arthur Hobbs, an American mathematician. In 1973, F. Harary and A.J. Schwenk [1] showed that the number of nonisomorphic caterpillars with n ≥ 2 edges is 2 n−3 + 2 ⌊(n−3)/2⌋. They found this formula in two ways: first, derived as a special case of an application of Pólya’s enumeration Theorem which counts graphs with integer-weighted points; secondly, by an appropriate labelling of the lines of the caterpillar. In this paper, we gave a new proof of this result using a new sum of graphs, introduced in [3, 2] and studied with great attention in [4].

The paper is organized as follows. In Section 2, we study a combinatorial problem which will be used in the proof of the main Theorem (see Theorem 3.7). In Section 3, we introduce the sum of graphs and use it to build the caterpillar trees, and, thus, give a new proof of the formula enumerating caterpillar trees on n ≥ 2 edges.

2. Combinatorial lemma

Let 𝔹 = {0, 1} and B m = 𝔹× · · · × 𝔹 the m-times Cartesian product of 𝔹. We define the following functions:

where, for k = 1, . . . , m,

Here, we consider for all f, g: 𝔹 m −→ 𝔹 m the composition f ◦ g: 𝔹 m −→ 𝔹 m .

Proposition 2.1. Let i, r, c: 𝔹 m −→ 𝔹 m be the functions defined above and take x ∈ 𝔹 m . Then, the following properties hold:

  • (1) i(x) = x,

  • (2) r 2 = i,

  • (3) c 2 = i,

  • (4) c _ r = r _ c,

  • (5) (c _ r)2 = i,

  • where c 2 = c _ c.

Proof. By definition of i, r and c, it is clear that (1), (2), (3) and (4) follows. And (5) follows from (4), (2) and (3).

Definition 2.2. Let x, y ∈ 𝔹 m . We will say that x is related to y when i( x ) = y or r( x ) = y or c( x ) = y or (c ◦ r)( x ) = y , and it will be denoted by x ∼ y .

Remark 2.3. The relation defined in Definition 2.2 is an equivalence relation.

In this section we prove the following combinatorial lemma for the equivalence classes associated with points in 𝔹 m .

Lemma 2.4 (Combinatorial Lemma). Let x ∈ 𝔹 m and set [ x ] = {y ∈ 𝔹 m | x ∼ y}. Then,

Where andzis the largest integer smaller than or equal to z.

Proof.First, let’s show the following: The class [ x ] has 2 or 4 representatives.

Indeed, if x , r( x ), c( x ) and (c ◦ r)( x ) = (r ◦ c)( x ) are different from each other, we will get that the class [ x ] has 4 representatives, namely

On the other hand:

  • i) If x = r(x), then c(x) = (c _ r)(x) and, thus, [x] = fx, c(x)g.

  • ii) If x = (r _ c)(x), then r(x) = c(x) and, thus, [x] = fx, r(x) = c(x)g.

The cases i) and ii) have only 2 representatives for the class [ x ] and the affirmation follows.

Remark: x # c( x ) by definition.

Now, let be a class that only has 2 representatives. Set x = (x1, x2, · · · , xm). We have the following cases:

I) If x = r( x ) then

II) If x = (r ◦ c)( x ) then

In case (I), if m is even, we have to know the first entries of x = (x 1 , x 2 , · · · , x m ), that is, we can form elements. Now, as pairwise elements belong to the same class, we have that belong to the same class, and, therefore, we will have two representatives. On the other hand, if m is odd, we first delete the central coordinate of x , to obtain the m − 1 even case, which leads us to have classes with two representatives. Now, considering the central coordinate of x , we see that it can take the values 0 or 1, and thus, when m is odd there are classes with two representatives.

Analogously, we have a similar result in case (II) when m is even. Note that when m is odd there are no representatives, since no x with m odd entries satisfies this case.

So, from (I) and (II), if m is even, we get classes with two representatives each. If m is odd, we get . Therefore, in both cases we have the same number of representatives.

The next step consists of computing . It follows from the Affirmation that ismade up of classes that have 2 or 4 elements. Thus, we can divide 𝔹m into a collectionof disjoint classes of 2 or 4 elements each. Thus, one gets

where μ is the number of classes of with two representatives, namely and η is the number of classes of with four representatives. Then, substituting these values in (1), one gets

Therefore,

3. Sum of graph and Caterpillar tree

Let us denote by A the set of all tree graphs.

The sum of graphs in A is an operation that is performed between two graphs of 𝔸. This sum is defined as follows:

Figure 1 Sum of graphs. 

Definition 3.1. Let G = (V, E) and ℋ = (V , E ) be distinct graphs in A and let e = (a, b) ∈ E and e = (a , b ) ∈ E be edges. Then,

is a new graph such that e and e and their respective vertices, connecting G and ℋ, are identified. The graph G {e,e } ℋ is the sum between G and ℋ. This sum will be denoted by GH if there is no confusion in the identification of the edges. See Figure 1 for a graphical representation of this sum.

Definition 3.2. Consider the path P 3 and J = P 3. We denote by J + the graph derived of J with two positive signs in the extreme vertices and a negative sign in the middle vertex, and by J to the graph derived of J with two negative signs in the extreme vertices and a positive sign in the middle vertex. See Figure 2.

Figure 2 Graphs J + and J

Definition 3.3. Let {J i } k i=1 be a family of graphs, where J i ∈ {J + , J }. We define J 1J 2 ⊕… ⊕ Jk, as follows:

  • For k = 1, we have J 1.

  • For k = 2, we choose an edge in J 1 and add with J 2 in the chosen edge. Thus, we obtain J 1J 2. Finally, we mark in J 1J 2 the edge of J 2 where the addition was not performed. (See part (i) of Figure 3).

  • For k = j, we add J 1· · ·J j−1 with J j on the marked edge of J 1 ⊕ · · · ⊕ J j−1 , and, thus, obtaining J 1· · ·J j−1 J j . Finally, we mark J 1 ⊕ · · · ⊕ J j−1 J j in the edge of J j , where the addition was not performed.

We note that the identification of edges should be done while preserving the signs.

Notation. Given {Ji}k i =1, where J i ∈ {J + ,J }, we will denote by ⊕ k i=1 J i the sum J 1⊕ .. ⊕ J k in Definition 3.3. Thus: ⊕ k i=1 J i = J 1⊕ … ⊕Jk. By convention,⊕0 i=1 J i = I, where I, is the graph of one edge.

Example 3.4. InFigure 3 (i), we have the construction of J+ ⊕ J+ and J−J−, according to the Definition 3.3, where we can see that J+ ⊕ J+ ≈ J−J−, as graphs. Similarly, inFigure 3 (ii) we have the construction of J+ ⊕J− and J−J+, where we can see that J+ ⊕ J−⊕=J−J+.

Proposition 3.5. Let {J i } k i =1 be a family of graphs such that Ji 2 {J + ,J }. Then, the following statements holds:

Proof. For (1), since J+≅J we have J i J i for all i = 1, … , k. Then, if we replace J i by J i in ⊕ k i=1 J i we get ⊕ k i=1 Ji and since the sums of the graphs continue to beperformed on the same edges, we have ⊕ k i=1 J i ≅⊕ k i=1 Ji, see Figure 4.

Figure 3 Sum between J + and J , where “≅ ” is the isomorphism of graphs. 

Figure 4   

For (2), we note that the sum ⊕ k i=1 J i = J 1J 2⊕ … ⊕J k−1 J k is built starting from J 1 which is added to J 2 to obtain J 1J 2, latter we added J 3 to obtain J 1J 2J 3, and, thus, until we get the sum of J 1J 2 ⊕ … ⊕ J k−1 and Jk to finally get J 1J 2⊕ …⊕J k−1 Jk = ⊕ k i=1 J i , but we also noted that this same sum is built as the sum of J k and J k−1 , and, thus, until we get to add J k ⊕ … ⊕J 2 with J 1 to get J k J k−1 ⊕ … ⊕J 2J 1 = ⊕ k i=1 J k+1−i . Thus, ⊕ k i=1 J i ≅ ⊕ k i=1 J k+1−i .

Example 3.6. The graphs J +J J +J + and J J +J J are built in (i) and (ii) ofFigure 4, respectively. Furthermore, and, thus:

The following Theorem is the main result of the paper (it was initially showed by F.

Harary and A.J. Schwenk in [1]), for which we gave an alternative proof.

Theorem 3.7. Let 𝕁 = {J 1· · ·J i · · ·J m 𝔸 | J i = J + or J i = J , ∀i = 1, · · · , m, and m ∈}. Then, the number of different nonisomorphic graphs with n ≥ 2 edges in 𝕁, is given by

Proof. Given m ∈ ℕ, we define the functions ι, φ, ψ: 𝕁 → 𝕁 by

We say that ⊕ m i=1 Ji and ⊕ m i=1 L i are m related in 𝕁, denoted by

if

Now, we affirm that the relation m is an equivalence relation. Indeed, it follows immediately by the combinatorial Lemma (Lemma 2.4), where we take J i = x i , J+ = 1, J− = 0, ⊕ m i=1 J i = (x 1 , …, x m ) and ι = i, φ = f, ψ = g, ∼m=. Furthermore,

Thus, we have different graphs of the form ⊕ m i=1 J i , where J i ∈ {J + ,J }. Since the graphs ⊕ m i=1 J i have m + 1 edges, making n = m + 1 and substituting in (3) we have that the number of nonisomorphic different graphs, with n ≥ 2 edges in 𝕁, is given by

Given a Caterpillar tree fixed, the following result allows us to obtain a family {J i } k i =1 , where J i ∈ {J + ,J }, such that K≅⊕ k i=1 J i .

Proposition 3.8. Let n be a positive integer and K be a Caterpillar tree with n + 1 edges, then there exists a family {J i } n i=1 , where J i ∈ {J + , J }, such that

Proof. By induction on the number E of edges of K.

For a graph with 1 edge, then by convention we have K≅⊕0 i=1 J i .

For a graph with 2 edges, we take K≅⊕1 i=1 J i , where J i = J + or J i = J .

Suppose that it is true for a graph with n edges, then K≅⊕ n−1 i=1 J i .

Now, we show that it is true for a graph with n + 1 edges. Indeed, K′ is the graph that is obtained when deleting an end edge from K. Thus, K′ has E′ = edges. Then, by induction, we have that K′ ≅⊕ n−1 i=1 J i . Now, in ⊕ n−1 i=1 J i we insert an end edge by adding conveniently J+ or J−, so that ⊕ n i=1 J i K as follows: first, we identify the sign of the vertex where the edge will be inserted (it is clear that said vertex is positive or negative). Then there will be a j such that ⊕ n−1 i=1 J i = (⊕ n−1−j i=1 J i ) _ (⊕ n−1 i=n−j J i ) so that the last vertex to the right of⊕ n−1−j i=1 J i become the vertex where the missing edge will be inserted. If the vertexis positive (resp. negative) we immediately add⊕ n−1−j i=1 J i with J− (resp. J +), andadding ⊕ n−1 i=n−j J i , we get (⊕ n−1−j i=1 J i ) ⊕ J ⊕ (⊕ n−1 i=n−j J i ) (resp. (⊕ n−1− ji=1 J i ) ⊕ J + ⊕ (⊕ n−1 i=n−j J i )). As was inserted the missing edge to ⊕ n−1 i=1 J i to be isomorphic to K, we have that

where J = J , if the last vertex created in ⊕ n−1−j i=1 J i has a positive sign and J = J+, if the last vertex created in ⊕ n−1−j i=1 J i has a negative sign.

An example for Proposition 3.8 is given in Figure 5.

Figure 5 Way to insert an edge in positive vertex (i) or in negative vertex (ii). 

Theorem 3.9. Let 𝕁0 be the set of all different nonisomorphic graphs in 𝕁 and let 𝕂 be the set of nonisomorphic Caterpillar trees, then

Proof. By Definition 3.3 we have that the graphs in 𝕁0 are Caterpillar trees (thus 𝕁0 𝕂) then, by Proposition 3.8, we get that every Caterpillar tree is isomorphic to an element of J0, thus 𝕂 𝕁0 and therefore 𝕁0 = 𝕂. Furthermore,

Acknowledgements:

The first author thanks the Vicerrectorado de Investigación of the Universidad Nacional de San Cristóbal de Huamanga.

References

[1] Frank H. and Schwenk A.J., “The number of caterpillars”, Discrete Mathematics, 6 (1973), No. 4, 359-365. doi:10.1016/0012-365X(73)90067-8. [ Links ]

[2] Hacon D., Mendes de Jesus C. and Romero Fuster M.C., “Stable maps from surfaces to the plane with prescribed branching data”, Topology and Its Appl., 154 (2007), No. 1, 166-175. doi:10.1016/j.topol.2006.04.005. [ Links ]

[3] Huamaní N. B., Mendes de Jesus C. and Palacios J., “Invariants of stable maps from the 3-sphere to the Euclidean 3-space”, Bull Braz Math Soc, New Series, 50 (2019), 913-932. doi:10.1007/s00574-019-00133-4. [ Links ]

[4] Huamaní N. B. and Mendes de Jesus C., “Grafos pesados y aplicaciones estables de 3-variedades en ℝ3”, Rev. Integr. temas mat., 39 (2021), No. 1, 109-128. doi:10.18273/revint.v39n1-2021008. [ Links ]

To cite this article: N. B. Huamaní, Joice S. do Nascimento and A. Condori, A new sum of graphs and caterpillar trees, Rev. Integr. Temas Mat., 40 (2022), No. 1, 77-85. doi: 10.18273/revint.v40n1-2022004

Received: May 05, 2021; Accepted: January 18, 2022

Creative Commons License This is an open-access article distributed under the terms of the Creative Commons Attribution License