I'm in multivariate calculus and we just finished up the chain rule. One of the methods for solving this is to produce a tree graph and traverse it. An example would be this tree graph taken from my notes in class.

As part of class we need to write a report and I will be typing it all out in Word. I want to be able to insert tables like this into my report. To do that I need to generate them somehow, where the output could be inserted into Word (an image most likely).
I am wondering if there is any free software that will allow me to generate a tree just as nice as the example that is relatively painless to use. Preferably most of the layout will be managed for me, I'd just need to define the number of nodes, names of the nodes, and the labels of the lines. The software doesn't need to take in equation input, I'm fine with having to name everything manually. I don't need to be able to show different colored lines to show transversal.
I also have access to Maple at my school labs and Mathematica Pi Edition on my Raspberry Pis. If there are no free tools to do this, is it possible to set up in either of them?
Another example, though less desirable, would be this example taken from Paul's Notes.

Well this is somewhat jenky (it's my first really big figure created with latex) but I think it could get the job done - if you have other specific chains I can create them for you, if you want a more in depth explanation of the code let me know, otherwise I tried to be verbose. Here's the output:
And the code: