Results 1 to 5 of 5
Thread: Family Tree App - Helllllp
- 01-04-2011, 12:02 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 2
- Rep Power
- 0
Family Tree App - Helllllp
hi all,
I have built a family tree program which thus far allows you to add relationships to nodes (mother, father, partner & siblings). This allows the tree to be built. well at least the links to be made.
My problem is I have to represent the tree textually. This is proving to be very hard. I thought of allowing to display the ancestors and descendants for a particular node but this proves to be difficult, especially when there are more than two generations for displaying ancestors (great grandparents and above).
To make things more clear I thought of using a file tree structure but got into a mess when displaying for great grandparents.
I can provide the source if anyone wants to see it.
Thanks for your time and expertise.
David
- 01-04-2011, 06:39 AM #2
Member
- Join Date
- Jan 2011
- Posts
- 5
- Rep Power
- 0
What structure do you have the family tree stored in?
- 01-04-2011, 10:35 AM #3
Member
- Join Date
- Jan 2011
- Posts
- 2
- Rep Power
- 0
Thanks for the reply. I store the family members in an arraylist. each member points to other members in the arraylist (mother, father or child).
- 01-04-2011, 03:04 PM #4
Cross-posted here: Java Programming Forums
GoldestJava Is A Funny Language... Really!.gif)
Click on * and add to member reputation, if you find their advices/solutions effective.
- 01-04-2011, 11:10 PM #5
Member
- Join Date
- Jan 2011
- Posts
- 5
- Rep Power
- 0
And how do you want this laid out? ie, how would you draw it in real life with a piece of paper?
Also, do you have methods that can identify the lowest descedant nodes and highest ancestor nodes? If you do, then I guess you just have to traverse the tree and write out the nodes as you find them, and do not iterate over nodes you have already processed.
How do you envisage this looking?
Similar Threads
-
Hello Family
By Shyamz1 in forum New To JavaReplies: 10Last Post: 12-10-2010, 10:11 AM -
Aspose.Total Product Family Q3 2010 Released
By sherazam in forum Java SoftwareReplies: 0Last Post: 10-04-2010, 01:48 PM -
Set Font Color, Font Style & Font Family While Replacing Text
By sherazam in forum Java SoftwareReplies: 0Last Post: 08-18-2010, 10:31 AM -
Data Structures(Binary Search Tree to AVL Tree)ASAP pls
By jfAdik in forum Forum LobbyReplies: 0Last Post: 04-04-2010, 07:40 AM -
Creating a Tree and then saving the Tree
By jackmatt2 in forum New To JavaReplies: 0Last Post: 08-22-2009, 12:51 PM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks