# Creating a tree with different data at each node

**URL:** https://discourse.paraview.org/t/creating-a-tree-with-different-data-at-each-node/10910
**Category:** ParaView Support
**Tags:** python, vtk
**Created:** [December 3, 2022, 1:07pm UTC](https://discourse.paraview.org/t/creating-a-tree-with-different-data-at-each-node/10910 "2022-12-03T13:07:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Juan\_Jose\_Casafranca](https://discourse.paraview.org/user_avatar/discourse.paraview.org/juan_jose_casafranca/32/3499_2.png) [@Juan\_Jose\_Casafranca](https://discourse.paraview.org/u/Juan_Jose_Casafranca)
#### Post date: [December 3, 2022, 1:07pm UTC](https://discourse.paraview.org/t/creating-a-tree-with-different-data-at-each-node/10910/1 "2022-12-03T13:07:47Z")

</div>

I have a Newton based optimizer and I am extracting some information into a tree like structure. My data looks something like this:

- Optimizer
  - objective function initial value (double)
  - Newton iteration
    - CG Solver iterations (int)
    - CG Solver error (double)
    - Line search iterations (int)
    - objective function value (double)

  - Newton iteration
    - CG Solver iterations (int)
    - CG Solver error (double)
    - Line search iterations (int)
    - objective function value (double)

  - total execution time

So as you can see, I have a tree structure where, at each node of the tree I can have some values and/or some children nodes.

I would like to know if its possible to load this kind of data into a vtkTree and load it in Paraview. I haven’t found any example where I can see how in the each node in the vtkTree I can store different values.

```auto

```
