Here's the question you clicked on:
sahar90
i want to spannig a tree with known childeren; i think preOrder is the best. but i dont know how to implement it in java; is there any one can help me?
http://docs.oracle.com/javase/tutorial/uiswing/components/tree.html
tnx for ur help; as a matter of fact i read the link u send ; but i dont find my answer:( tnx alot
Well I'm not sure what exactly you are asking, so I cannoit help you.
If I understand correctly, you want to create a spanning tree, but one with fixed children? One way you could do this is by reversing an algorithm for creating a normal spanning tree. Like e.g. connect each child to a non-child node. Then connect those nodes to other non-child nodes until you end up with a single starting point.