Click here to Skip to main content
15,941,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to travers all the nodes of a tree by bfs, the tree is binded with the data from a table in sql server which has parent child relationship

what i want to all the nodes of a tree according to breadth first travers

here is a link, which will give you idea about the algorithms of Breadth-First search,[^]

modify it according to your problem.

(your question is not much clear, post some codes, your table structure and then ask explain how the results should be)
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900