VOL. 15 NO. 2 (1992) 313-318
AN INTRODUCTION TO F-GRAPHS, A GRAPH-THEORETIC REPRESENTATION OF NATURAL NUMBERS
E.J.FARRELL
Department
ofMathematics The University of theWestIndiesSt. Augustine,Trinidad
(Received April 4, 1987 and in revised form June 26, 1990)
ABSTRACT.
A
special type of family graphs(F-graphs,
for brevity) are introduced. These are cactus-type graphs which form infinite families under an attachment operation. Some of the characterizing properties of F-graphs are discussed. Also, it is shown that, together with the attachment operation, these families form an infinite, commutative semigroup with unit element.’inally,
itisshown thatF-graphs aregraph-theoreticalrepresentations of natural numbers.KEY
WORDS AND PHRASES. Cactus type graphs, core, pattern recognition, semigroup, semigroup isomorphism, naturalnumbers, ancestor(graph),
parent(graph),
descendant(graph), F-
graph, attachingagraph, basisgraph,root ofanF-graph.1991AMS SUBJECT CLASSIFICATION CODE. 05C99,20M07.
1. INTRODUCTION.
First of allwe givesome definitions relative to the material which follows. Forthe standard definitions inGraphTheory,wereferthereadertoHarary
[1].
Let
(G,u)
and(H,v)
be twographs, rooted at u and vrespectively.By
attachingH
toG,
we mean the identification of the rootsuandv.H
is thereforeasubgraphof thenewgraphformedby the process.Suppose
that we attach an isomorph of(H,u)
to every node ofG,
then the graph formed by doing so, is denoted byG(H).
Notice that if all the nodes ofH
are equivalent(for
example ifH
is acycle),
thenwe speak aboutG(H)
without specifying a root in H. Also, since every node ofG
isusedinformingG(H),
it is unnecessarytospeakaboutarootinG.
Let us beginwith a singlenode G
0,
then attach to it arootedgraph(H,u),
to form thegraph G- GO(H)( H). G
2isthegraphformed by attachinganisomorph ofH
to everynode ofG i.e., G2-GI(H). In
general,G
i+Gi(H). By
continuing in this manner, we obtain a familyF {G 0, G,G2,...}
ofgraphs. IfH
is anode, thenF {GO};
otherwise Fisinfinite. We callGOthe core of the family. G is the basis of F. G2 is the
(direct)
descendant ofG (In
general, G+ k(k > 0)
is adescendant ofGi,
the(immediate)
parent ofG2(In
general, G is an ancestorof G+ k,
k> 0).
Wedefine the elements ofF
tobeF-graphs. Go
andG arecalled,trivialF-graphs.Wenotethat F-graphsareaspecialkindof
"cactus-type"
graphsand arealsoHusimitrees(Harary
[2]).
ForanyF-graph Gk,
wecall thesubgraphsisomorphictothebasis G1,
leaves ofGk.
314 E.J. FARRELL
In the material which follows,wederivesome characterizingproperties of F-graphs, and then investigate someof thealgebraicproperties ofthefamilies. Weshowthat operationscanbedefined onF-graphs,so astocreateasystemwhich isisomorphic to the system of natural numbers.
2. SOME
CHARACTERIZING PROPERTIES
OFF-GRAPHS.
Given an arbitrary graph
G,
it isofinterest todetermine(i)
whetherornot Gis anon-trivial F-graph and(ii)
ifitis, then what is itspositionin the family hierarchy. First ofall,ifGisnota cactus-typegraph,thenitcannotbeanon-trivialF-graph. Also,from the definition ofanF-graph, G must consist of isomorphic leaves. This criteria will eliminate many graphs.However,
many cactus-typegraphs will qualify, so the problemis certainly not a trivialone. For example, is the following graphT
anon-trivial F-graph?T:
Figure
Thefollowingtheoremhelps to characterizeF-graphs.
THEOREM 1. Let
F {GO, G1,G2,...}
beafamily ofF-graphsin whichG hasrn( > 1)
nodesandnedges. Then
Gr(r > O)
has(i)
mrnodes(ii) n(nr_-11)
edgesand
(iii) mr-
1 leavesrn-1
PROOF.
Theresultcanbe easilyproved.Theorem 1 provides a
(not
toouseful)
necessary conditionfor a graphto be a non-trivialF-
graph. SinceGOisalways anode,thenclearly,themembers of thefamily’
are totallycharacterized bythe(rooted)
leafG 1.
Ifoneisgivenanon-trivialF-graph, thenTheorem could be used to find itsposition r, if_aleafcanbe determined. The determinationof the leaf ofan arbitrarynon- trivial F-graph is inpractice,a difficult exercise. Thefirst inclination is to findsymmetries inthe graph; butthis is forbidding,evenin reasonablysmallF-graphs.Thus,
apracticaluseof Theorem 1 as anecessary condition, posesgreat problems, sincem and ndependonone’s
ability to identify the leaf.We nowrefer the reader to thegraph
T
in Figure 1. BecauseT
is constructed from triangles,one is inclined to look for
T
in the family of triangles.T
cannot be found in this family; and therefore theconclusioncould be thatT
isnotanon-trivialF-graph.However,
careful observation will show thatT
consistsof thegraphG
2from the family oftriangles,withthe leafG
2attached to everynode usinga nodeofvalency2asaroot. Therefore,T
isindeedanon-trivial F-graph.T
is thesecondmember of thefamilyofF-graphswith basisG2rooted atan2nodeofvalency 2(i.e.
thefamily of
G2’s).
It would be useful to develop some analytical meansfor arriving at the correct conclusionaboutanarbitraryT. At present, we areunable to do this.3. SOME
ALGEBRAIC
PROPERTIES OFF-GRAPHS.
The practical problem of determining whether or not an arbitrary graph is a non-trivial
F-
graph, seems to beone of pattern recognition.In
this section, wewill show that the familyF
has somebeautifulalgebraic properties which will have usefulimplicationsonthepatterns displayedby thegraphs.In
thematerialthatfollows,we assumethatzerobelongstothesetofnatural numbers.LEMMA
1.In
Gr,
thereexistsanode formedbythe coalescence of the roots ofrleaves.PROOF.
Thisfollows immediatelyfrom theconstructionofGrfromG0.
DEFINITION. Let :rbeanodeof
G
r definedbyLemma
1. Thenxis arootofG r. (Notice
that it is possible for several nodes ofGrto qualify as aroot eve___anifG
r is not regular. Therefore anyof themcanbe usedin the attachmentprocess).
Theideaofaroot and theexistenceofaroot ofG
r(by definition)
arecrucialtothe theoryofF-graphs. Weshow later on, thattheyarevital to theestablishmentof the properties ofF-graphs.LEMMA
2: G G- 1(G1) GI(G - 1),
forall k>
0.PROOF. We will prove the result by induction on k. For k 1,
G
k- isG 0,
which is a rtode. Therefore, Gk-1(G1) GO(G1)
GG(GO).
Let us assume that the result holds for k-1. ThenG/r-
G2(G1 GI(GIr- 2).
Now
G/r G/r I(G1 (GI(G/- 2))(G1).
Thegraph
(GI(G/- 2))(G1)
is obtainedby attaching G toeverynode ofGI(G
k-2). In
particular, G is attachedtoevery node ofG/ -2.
Itcanbeseen that theroots ofeachG/
-2nowbecome the rootsof eachG/ 1.
HenceweobtainG/
attached toG
i.e.GI(G
I1).
Therefore,G/ G/ I(G1 GI(GI 1).
Hence,
theresult holds for k.By
thePrincipleofInduction,itholds for all k>
0.Lemma 2 suggests that it does not matter whether we attach
G/-
toG
orG
to Gk-1,
whenforming
G/.
Thisideaisgeneralized bythefollowingtheorem.THEOREM2: G
+
8G.(G ) GS(G).
PROOF. Wewillprove theresult byinductionon k. For k 0,
G/
is a node, and the result follows trivially. For k 1, the resultholds, asshown aboveinLemma2. Let usassume thatthe result holds for k-1. ThenG/r +
8-1Gk- 1(G8 GS(GIr- 1).
Clearly
then,
G
+
8 G+
8-I(G1 (G l(GS)) (G1) (G,(G 1)(G1) (1)
The graph
(G/- I(GS))(G1)
is the graph obtained by attaching G to every node ofG
It-I(G8).
Now
the attachment ofG
to everynode of thesubgraphs G8ofG
k-1(G8),
will createsubgraphs, each of which is Gs+ 1. Therefore,
the resulting graph can be described asG
It- withG
s+
attachedi.e.Gkl(G8 + 1).
316 E.J. FARRELL
Consider any roof z of
G/- 1.
The graphs with z as a common node can be described asG
- I(GI(Gs))
i.e. G-
with the graphGI(G s)
attached to it, at z. But the leaf G can be considered as being attached toG/- 1,
and each node ofG
hasG
sattached toit(at
itsrootz).
Also,everyother nodeofG
: 1(G1)
will haveGsattached. Therefore, thegraph Gl(GS + 1)
isalso
(G
k-I(G1))(Gs) Gk(G s)
Similarly, we can show that Gk
+
sGS(G k)
by using Gk+
sGI(G
k+
s-1). Hence,
the results holds for k. Theproofiscompleted bythe Principle ofInduction.Theorem2 hassomeinteresting implications about the description ofan F-graph as apattern.
Thegraph Gncanbe described as GrwithG attached,foranypair ofnonnegative integersr and s, such that r
+
s n. Also, weconstruct Gnby attaching Gr,
to Gs,
for any r,s>_
O, such that DEFINITION. We define equality inF,
as a graph isomorphism. Addition(+)
inF
isdefinedasfollows:
Gr
+
GsGr(GS),
forallGr,
G_
F.Itcanbe easily shown that
+
iswell-definedonF.
COROLLARY2.1
(Closure
andCommutativity)For
all nonnegative integers k and s, and for allG/
andGsinF
v + v(vs) vs(v)
PROOF. The resultisimmediatefrom the theorem.
LEMMA
3 (Associativity)Gq+
[G
r+
Gs] [G
q+
Gr] +
Gs,
forallGq,
GrandGsinF.PROOF: Gq
+ [G
r+
Gs]
Gq+
Gr+
s Gq+
r+
Gq+ + Gs [G
q+
Gr] +
Gs,
forallq,r,s>
0.The associative property of
+,
implies that the order in which ancestors are added in the construction of adescendant,
is unimportant. We can begin with any ancestor and attach theothers,
inanyorder thatwechoose.Since
G
Ois anode,
thefollowing resultisimmediate.LEMMA
4 (Identity).Let F
beafamily ofF-graphs. Then GO+G r=G r+G O=G r,
forallGr_F.Thefollowingtheoremsumsupthe results of Theorem 2 andLemmas3 and4.
THEOREM3.
(F, +
is acommutativesemigroup with identify.Let us use the symbols
<
and >, for therelations "is an ancestorof" and "is a descendant of" respectively. Then foreveryfamilyF,
the following result holds.LEMMA
4 (Trichotomy). For any two elements Gr and G inF,
one and only one of the following holdseitherG
r<
Gs,
Gr> G
sorG
rG
PROOF. The result follows immediately from the definitions of ancestor and descendant.
Let us define a mapping from
(F, +
to the set N of natural numbers under addition, as follows:() .
INTRODUCTION OF F-GRAPHS 317
Then for allG
r,
Gs_ F,
/(a + a ) /(a + ) + /(a) + /(as).
Therefore
#
is a semigroup homomorphism.Suppose
that?(Gr) dl(Gs).
Then r s, whichimplies that
G"=
Gs.
Therefore#
isinjective. isclearly surjective. Therefore, is asemigroup isomorphism.Hence,
wehave thefollowing theorem.THEOREM4:
(F, +)- (N, +).
Theorem4 isthe crucialresult forcompleting the equivalence between
F
andN. Nowwecan make parallel definitions inF
in terms of+,
by looking at definitions in N. For example, we definemultiplicationinF
asfollows:Gr.G Gr
+
Gr+
Gr+ +
Gr(s times)
G+
G+
G+ +
G(r times)
The roles ofGOandG asequivalentto 0and 1 remainintact, asshown below.
G
O.G
r GO+G O+...+G
O(r
times GO andG
1.G
rG I+G +...+G (r
times Gr Also,wehave#(a
ra (G
r+ a
r+ + a r) ?(ar) + (a r) + + (ar) (s times)
r
+
r+
r...+
r(s
times rs(Gr),(GS).
The following theorem canbe easily establishedinamannersimilar tothat of Theorem 3.
THEOREM 5.
(F, +
is acommutativesemigroupwithidentity. Fromourobservationsonabove,
wecaneasily establish thefollowingextensionofTheorem4.THEOREM6:
(F, +,.) (N, +,.).
Theequivalence ofFandNisnowcomplete. Westatethisresult inadifferentmannerinthe following corollary.