genealogy

Use Ruby closure_tree gem without rails

人走茶凉 提交于 2019-12-25 04:58:08
问题 I want to try the gem closure_tree to build a tree for my genealogy database. I installed the gem under Ruby MRI 2.3.0 on a windows 7 box. The versions of the dependencies are in the errorlog below. $ gem install closure_tree Fetching: with_advisory_lock-3.0.0.gem (100%) Successfully installed with_advisory_lock-3.0.0 Fetching: closure_tree-6.2.0.gem (100%) Successfully installed closure_tree-6.2.0 2 gems installed When I try the most minimalistic code it fails, I suppose because I don't use

Can't get to show all of a tree in a traversal preorder in php

╄→尐↘猪︶ㄣ 提交于 2019-12-22 10:33:10
问题 I have a table in my database that host many genealogy trees. ----------------------------- - id name parent_id ----------------------------- - 1 grandfather NULL - 2 father 1 - 3 uncle 1 - 4 son 2 - 5 brother 2 - 6 cousin's dauther 7 - 7 cousin 8 - 8 auntie 1 The problem is I can't get to show all the names because of an edge case: -When I have a person with a parent_id that is bigger than it's parent's parent_id (see cousin's daugter) I use this queries to get the table: $sql = "SELECT p1

How can I prevent overlapping in a family tree generator?

一世执手 提交于 2019-12-18 14:14:39
问题 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 see. multiple siblings partners dont necessarily need to have children there doesn't always have to be a parent "pair", there can just be a single father/mother The problem I'm encountering is: I'm generating the offsets based on the "current" node

Family tree layout with Dot/GraphViz

回眸只為那壹抹淺笑 提交于 2019-12-18 09:55:49
问题 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" [shape=box, regular=1, color="pink"] ; "Clancy" [shape=box, regular=1, color="blue"] ; "Jackeline" [shape=box, regular=1, color="pink"] ; "Herb" [shape=box, regular=1, color="blue"] ; "Homer" [shape=box, regular=1, color="blue"] ; "Marge" [shape=box, regular=1,

Family tree layout with Dot/GraphViz

大憨熊 提交于 2019-12-18 09:55:02
问题 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" [shape=box, regular=1, color="pink"] ; "Clancy" [shape=box, regular=1, color="blue"] ; "Jackeline" [shape=box, regular=1, color="pink"] ; "Herb" [shape=box, regular=1, color="blue"] ; "Homer" [shape=box, regular=1, color="blue"] ; "Marge" [shape=box, regular=1,

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

时间秒杀一切 提交于 2019-12-17 03:50:47
问题 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 need is the ability to create links between entities (from father to mother) and links between nodes and other links (from child to the father-mother link). Currently I don't have a fixed data schema for this. I've chosen d3.js for this because it

Neo4j cypher query for X-chromosome ancestors

时光毁灭记忆、已成空白 提交于 2019-12-11 02:32:14
问题 In genetic genealogy X-chromosome data is useful linking to certain ancestors. This is well illustrated at: X-DNA Inheritance Chart My Neo4j database has nodes for each Person and relationships connecting them of father and mother. Each node has a property sex (for the Person's gender; M or F). A female has two X-chromosomes, one from either parent. A male has one X-chromosome, always from the mother. You can use reduce to see the genders involved in the inheritance from ancestors: match p=(n

Can't get to show all of a tree in a traversal preorder in php

一笑奈何 提交于 2019-12-06 02:12:43
I have a table in my database that host many genealogy trees. ----------------------------- - id name parent_id ----------------------------- - 1 grandfather NULL - 2 father 1 - 3 uncle 1 - 4 son 2 - 5 brother 2 - 6 cousin's dauther 7 - 7 cousin 8 - 8 auntie 1 The problem is I can't get to show all the names because of an edge case: -When I have a person with a parent_id that is bigger than it's parent's parent_id (see cousin's daugter) I use this queries to get the table: $sql = "SELECT p1.id, p1.name, p1.parent_id FROM pariente p1 ORDER BY p1.parent_id"; $result = $conn->query($sql); The

Detect cycles in a genealogy graph during a Depth-first search

纵然是瞬间 提交于 2019-12-04 12:17:34
问题 I'm loading horse genealogical data recursively. For some wrong sets of data my recursion never stops... and that is because there are cycles in the data. How can I detect those cycles to stop recurring? I thought of while recurring maintain a hashTable with all "visited" horses. But that will find some false positives, because a horse CAN be twice in a tree. What cannot happen is that a horse appear as a father or grandfather or great grandfather of ITSELF. 回答1: Pseudo code: void ProcessTree

Handling historical calendar dates

自作多情 提交于 2019-12-03 17:26:30
问题 What standards and strategies are there for handling historic dates described in older calendar form? The contemporary Gregorian calendar, with different length months, leap years, etc. is relatively easily handled with built-in programming language libraries, or data formats such as ISO8601, RFC3339 and RDF's OWL-Time ontology. Earlier representations such as the Julian calendar, religious calendars, regnal years (e.g. Third June 13 Charles II ) and variations thereof do not seem as well