I am using Ruby (Ruby on Rails) and have a nested set of about 2000 nodes. Each node can only have two children.
What is the best way to determine how many nodes are in each level? Do I have to crawl the entire tree looking for sibling to do this?
Thanks!