stefankroes / ancestry

Organise ActiveRecord model into a tree structure
MIT License
3.72k stars 458 forks source link

Multiple root nodes #595

Closed rctneil closed 1 year ago

rctneil commented 1 year ago

Hi,

Is it possible to have multiple root nodes?

Eg, in a family tree environment, say you had two brothers but didn't have their parent information. Both brothers would be at the root.

kbrock commented 1 year ago

you can have multiple root nodes. They wouldn't know that they are brothers. They would look like independent entities until they both set a common parent.