Copy all child nodes

Hi,

I am using GraphNode example and modifying to meet my needs.
I have nodes like in flow chart each connected. If i copy/paste main node i need to paste all nodes and links associated to main node upto last node. I am overrideing copychildren function, but that allows only main node and next immediate node.
Is there a way to copy all child nodes in the path.
Looking for your suggestions.

Look at the TreeApp sample for an example.

Thanks for your help. This example will do what i need.