Questions tagged [family-tree]

A family tree, or pedigree chart, is a chart representing family relationships in a conventional tree structure.

The more detailed family trees used in medicine, , and social work are known as genograms. (From Wikipedia)

147 questions
1593
votes
18 answers

Cycles in family tree software

I am the developer of some family tree software (written in C++ and Qt). I had no problems until one of my customers mailed me a bug report. The problem is that the customer has two children with their own daughter, and, as a result, he can't use my…
Partick Höse
  • 11,151
  • 3
  • 13
  • 9
60
votes
7 answers

How do you create a family tree in d3.js?

I'm currently working on a small genealogy experiment and would like to implement a simple family tree like in the picture below. The best search results so far for this only yielded examples where a child can only have a parent node. But what I…
user659025
49
votes
5 answers

Rendering a dynamically created family graph with no overlapping using a depth first search?

I want to generate this: With this data structure (ids are random, btw not sequential): var tree = [ { "id": 1, "name": "Me", "dob": "1988", "children": [4], "partners" : [2,3], root:true, level: 0, "parents": [5,6] }, { "id": 2, "name":…
meder omuraliev
  • 171,706
  • 64
  • 370
  • 423
45
votes
9 answers

Family Tree Algorithm

I'm working on putting together a problem set for an intro-level CS course and came up with a question that, on the surface, seems very simple: You are given a list of people with the names of their parents, their birth dates, and their death…
templatetypedef
  • 328,018
  • 92
  • 813
  • 992
44
votes
6 answers

Family tree layout with Dot/GraphViz

I am trying to draw a family tree with Dot and GraphViz. This is what I currently have: # just graph set-up digraph simpsons { ratio = "auto" mincross = 2.0 # draw some nodes "Abraham" [shape=box, regular=1, color="blue"] ; "Mona" …
BioGeek
  • 19,132
  • 21
  • 75
  • 123
22
votes
6 answers

Javascript/PHP Family Tree Builder with Multiple Parents

Is there an existing PHP, Javascript, or even command line tool that can build a family tree in HTML (preferably) or at the very least create an image for it? Multiple parents are a requirement. I have been googling this for hours, but to no…
Explosion Pills
  • 176,581
  • 46
  • 285
  • 363
22
votes
1 answer

Multiple partners in a family tree in d3.js?

I have a family tree from Cyril's amazing answer but I'm trying to figure out how to adjust it to support multiple partners. In this case, I added a "Mistress" node and am trying to denote that "Mistress" and "John" had a child named "Hidden…
meder omuraliev
  • 171,706
  • 64
  • 370
  • 423
19
votes
6 answers

Calculate Family Relationship from Genealogical Data

I would like to be able to calculate the family relationship between two individuals in a family tree, given the following data schema (simplified from my actual data schema, only showing columns that directly apply to this…
defines
  • 9,494
  • 4
  • 35
  • 52
18
votes
3 answers

How can I prevent overlapping in a family tree generator?

I'm creating an interactive family tree creator, unlike more simpler versions which are simple pedigree charts/trees. The requirements for mine (based on familyecho.com) are: multiple partners vs just a simple 2 parent to 1 child that you normally…
meder omuraliev
  • 171,706
  • 64
  • 370
  • 423
17
votes
2 answers

Looking for a Family Tree

I am creating Family Tree feature for my web app with HTML5 requirements. I already searched and found some JS samples, but I haven't find any that fit with my requirements. I already tried JIT, Rafael, GoJS, etc. I found this to be the closest one…
Irwan
  • 513
  • 1
  • 5
  • 17
15
votes
9 answers

How do I draw the lines of a family tree using HTML CSS?

I'm trying to implement something similar to what http://www.ancestry.com has, but I'm not sure how to draw the lines. Here is a rough ascii sketch of what I want to do: +----GrDAD1 | +----DAD----+ | …
Jin Kim
  • 13,866
  • 16
  • 51
  • 79
13
votes
5 answers

Family tree design suggestions?

I would like to design a family tree on my website. How can this be done with jQuery or Ajax? Any animated examples out there?
Erik
  • 5,455
  • 26
  • 65
  • 110
8
votes
3 answers

Multiple rectangles not drawing on canvas

I am trying to create a family tree like structure in android. I am using canvas to draw rectangle and line for family members names and connecting line. I am drawing rectangle and line by the following method with the help of…
Manishika
  • 4,968
  • 2
  • 19
  • 27
8
votes
5 answers

Efficient database query for ancestors on an acyclic directed graph

Let's say I have an acyclic directed graph such as a family "tree" (not really a tree since a child has 2 parents). I want to place a representation of this graph in a relational database so that it's fast to compute all ancestors of a node, and all…
Dave Aaron Smith
  • 4,349
  • 29
  • 37
8
votes
1 answer

Android - how to create a family-tree diagram (visual)

There are a ton of family tree apps out there, but for some reason I cannot find one example of how to create one for an Android application. Do I use canvas, is there a chart library? My basic requirement is to draw a tree (node) chart / diagram…
user3358904
  • 89
  • 1
  • 2
1
2 3
9 10