Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tree structures?
Message
From
17/12/1998 12:43:44
 
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00168160
Message ID:
00168569
Views:
19
>Im wondering how one would implement a set of records that are sorted tree like, as oposed to linearly. ie create a family tree where each node can have a marrage link, more than one children link, and a parent link. Not a simple tree, either: there would actualy have to be more that one marrage link, and maried into the family people would only have one link.
>
>Any idea how one would do this, indeed, is it possible?

If you are into genealogical work, the word "tree" (as used in Computer Science) does not apply. IMO, the best (relational) way to do it would be to have the following tables:
PEOPLE(idPerson, OtherPersonData, idFather, idMother)
MARRIAGES(idMalePerson, idFemalePerson, OtherMarriageData)
On the other hand, its graphical representation is "left as an exercise"...
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform