User Profile
Collapse
-
Thanks. Basically, something that makes this a lot simpler than it could be is that I would be drawing a "tree" relative to only one node. For example, I would be going to the web page for node X, and the tree would be relative to that node. In other words, we would see the parents of X, the parent's parents, and so forth. We would also see siblings of X, and children and descendants of X. However, we would not need to see the parents... -
ok, doing some research I realize that because a child can have more than 1 parent this is not a tree, but rather a graph.Leave a comment:
-
Converting an existing structure to a tree structure
Hello, I was wondering how I would convert an existing structure to a tree. What I want is basically a family tree. What I have is the following:
array (
array(id => 123, p1 => 567, p2 => 765),
array(id => 321, p1 => 567, p2 => 890),
array(id => 333, p1 => 123, p2 => null),
array(id => 444, p1 => null, p2 => null),
etc.
);
It's...
No activity results to display
Show More
Leave a comment: