A function that returns a list of paths in a tree
<p>Can someone please give me an idea on how to create a function which returns a list of paths/string of paths...whatever data of paths in a tree?</p>

<p>for example,</p>

<p>The tree:</p>

<pre><code>       4
 2               6            
</code></pre>

<p>should return each path in any data structure: [[4,2],[4,6]]
or maybe ['42','46']</p>
