Sounds like an adjaceny list model.

Does the list contain the whole tree or does a list only contain a path from 
one node to another while other lists contain other paths?



On 6/2/05, Emmet McGovern <[EMAIL PROTECTED]> wrote:
> 
> Brain Meltdown. Maybe someone can help.
> 
> I have a list such as (item1,item2,item3,item4,item5). The list can be any
> length. Item1 would be the parent of item2 and item2 would be the parent 
> of
> item3 and so on.
> 
> What's the most efficient way of determining the parent of any item in the
> list and determining that item1 has no parent?
> 
> Thanks,
> Emmet
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble 
Ticket application

http://www.houseoffusion.com/banners/view.cfm?bannerid=48

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:208373
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to