family-tree

How can I prevent overlapping in a family tree generator?

不羁岁月 提交于 2019-11-30 11:09:14
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 member and when I go past the first generation with say, 2 parents, it overlaps. Example of the

MySQL Store Relationship (Family) Tree

柔情痞子 提交于 2019-11-30 10:09:18
I need to build a family tree in php and MySQL. I'm pretty surprised at the lack of open source customizable html family tree-building software there is out there, but I digress. I have spent a lot of time reading about storing MySQL digraphs and family trees. Everything makes sense to me: have a table with nodes (people) and a table with edges (relationships). The only problem I have is I'm not sure of the best way to store relationships that are not necessarily adjacent, for example sibling and grandparent relationships. At first I didn't think this would be a big deal because I can just

Javascript/PHP Family Tree Builder with Multiple Parents [closed]

血红的双手。 提交于 2019-11-29 20:12:13
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 avail. For instance, the Google Organizational Chart would be ideal, but it only allows each node to have at most one parent. I need two parents to be possible. Whatever this website does would also be perfect: http://www.familyecho.com/ , but it seems to not be done with javascript and they don't publish the code that actually creates the visualization.

Multiple partners in a family tree in d3.js?

可紊 提交于 2019-11-29 16:25:07
问题 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 Son". The current data structure works like this: In that, the root object stores everything. It has a children array which contains the up most "generation" with no parents. It also contains an object that contains the children of these sibling objects

MySQL Store Relationship (Family) Tree

房东的猫 提交于 2019-11-29 15:25:25
问题 I need to build a family tree in php and MySQL. I'm pretty surprised at the lack of open source customizable html family tree-building software there is out there, but I digress. I have spent a lot of time reading about storing MySQL digraphs and family trees. Everything makes sense to me: have a table with nodes (people) and a table with edges (relationships). The only problem I have is I'm not sure of the best way to store relationships that are not necessarily adjacent, for example sibling

Javascript/PHP Family Tree Builder with Multiple Parents [closed]

若如初见. 提交于 2019-11-28 16:01:42
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . 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 avail. For instance, the Google Organizational Chart would be ideal,

“Family Tree” Data Structure

那年仲夏 提交于 2019-11-27 11:44:13
I'm looking for a way to represent a family tree in PHP. This means that children will need to inherit from two (or more) parents. Here are the requirements: 1, 2, or more parents Bonus points if I can attach metadata like a last name or relationship status Here is my non-working attempt (no arrays as keys, sadly): $tree = array( 'uncle' => false, // no children array('mom', 'dad') => array( 'me' => false, array('brother', 'sister-in-law') => array( 'niece' => false ) ) ); The question is, how can I represent a family tree with these requirements? You won't be able to do it all in a single

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

痴心易碎 提交于 2019-11-26 18:21:36
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 looks like would be capable of doing the job . I just don't know how or even where to start. Tutorials

Cycles in family tree software

核能气质少年 提交于 2019-11-26 08:38:28
问题 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 software because of errors. Those errors are the result of my various assertions and invariants about the family graph being processed (for example, after walking a cycle, the program states that X can\'t be both father and grandfather of Y). How