User Profile

Collapse

Profile Sidebar

Collapse
rymonator
rymonator
Last Activity: Jun 3 '10, 10:01 PM
Joined: Jun 3 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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...
    See more | Go to post

    Leave a comment:


  • 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.
    See more | Go to post

    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...
    See more | Go to post
No activity results to display
Show More
Working...