How to create a Data Tree?

Did you see this thread? Create data tree with c# There is a Datatree Class that you can use in C#.

Another is here: http://james-ramsden.com/data-trees-and-c-in-grasshopper/

In Grasshopper itself you can Graph on branches.