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)

165 questions
0
votes
1 answer

prolog, duplicating in queries

I'm trying to construct a familiy tree in prolog, but when entering siblings(X,Y). as a query I get duplicates prints, anyone knows why? for ex: parent_of(abraham, herb). parent_of(mona, herb). parent_of(abraham, homer). parent_of(mona,…
0
votes
1 answer

Splitting a tuple with list of tuples that generates a family tree

Let us use tuples and lists to represent a family tree. Each person is represented as a tuple. The first element of the tuple is this person’s name. The second element of the tuple is a list that contains this person’s children. Each child is…
qiqi lim
  • 9
  • 1
0
votes
1 answer

CSS family tree representation with multiple sub-parents( Many to one and one to many)

I have seen many family tree representations. My question is that can we represent a one to many and then a many to one level? Currently, we represent a flow of stops one after the other but we would want to a level with many steps which then…
SIBR
  • 1
  • 4
0
votes
0 answers

family tree /3 prolog

I'm sort of a beginner to Prolog and I have a quick question. I've built a family tree in prolog with parents(X,Y,Z). But when time comes to built uncle(Uncle,X). and aunt(Aunt,X). seems a bit difficult for me. I've tried uncle(Uncle,X) :-…
gew kar
  • 1
  • 3
0
votes
1 answer

Center first and last node of OrgChart / FamilyTree

I have tried lots of Org Charts, this one is unique as it is amongst the very few allowing multiple parents. The only issue being that the first node is at the same level as the nodes supposed to be below it and the last node not being centered…
alain
  • 11
  • 2
0
votes
1 answer

Family tree in Python

I need to model a four generational family tree starting with a couple. After that if I input a name of a person and a relation like 'brother' or 'sister' or 'parent' my code should output the person's brothers or sisters or parents. I have a fair…
Lax_Sam
  • 1,099
  • 2
  • 14
  • 32
0
votes
0 answers

make a D3 js Family Tree in top-down/bottom-up manner

I have been using d3.tree to render a family tree like in this js fiddle.But the nodes in this tree are appended in breath first manner(their append order is marked with a / and their order eg:"/13")so my question is that Is there a way to make a d3…
0
votes
0 answers

Family tree in CSS+HTML, including spouses, misaligned with single children

i am working on a family tree with CSS and HTML. I have found the base code from 'TheCodePlayer's tutorial on family tree. It all works fine and dandy, when parents have two or more children. But when you try to have a parent, with a single child…
Z3br3
  • 37
  • 8
0
votes
1 answer

How to get list of step siblings in postgres?

Following is my schema :- postgres=# \d check_user; Table "public.check_user" Column | Type | Modifiers --------+---------+--------------------------------------------------------- id |…
Mangu Singh Rajpurohit
  • 10,806
  • 4
  • 68
  • 97
0
votes
2 answers

Clips Family Expert System

I'm trying to implement a basic expert system in the Clips programming language. I have a knowledge base of children with their respective parents. I want to set up a rule so that if two children have the same parents then it asserts the fact that…
0
votes
0 answers

prolog royal family tree

my question is similar to what has been asked here: determine the old line of succession prolog and this Prolog - recursing down family tree As the solutions stated there are not really I wanted, can anyone give an idea on how to solve the following…
james
  • 1
  • 2
0
votes
1 answer

SQL Family Tree genealogy using Closure Table with support for spouse, sibling, in-laws, niblings, etc

I have read Bill Karwin's answer on this post and I was amazed on how it solved my basic problem on a Family Tree Genealogy i've been working on (at least on a parent-child relationship or ancestor-descendant level) using MySQL database. The…
0
votes
0 answers

How to plot subcategories and their parents in R

I am totally lost for an easy plot. All i want to do is something like a dendrogram, but without any calculations. A simple, treelike structure to show which subcategories belongs to which category and so on. My columns are looking like…
0
votes
1 answer

Family tree in Prolog

When I try to see who is brother to who and same for sister it gives me the sons and daughter, I cannot find the mistake... father(pedro-i,fernando-i). father(pedro-i,beatriz(1347)). father(pedro-i,joão(1349)). …
0
votes
1 answer

Prolog, gender with if_then_else

I would like to say that if he is a father he is a male else is a…