title: Do you know an effective algorithm for mapping the tree structure to a table representation
body: <p>Do you know an effective algorithm for mapping the tree structure to a table representation and back?
  The problem reduces to writing a function to get the node object from the X,Y coordinates. <em>(Look at the pictures)</em> New nodes can be added and removed. Do you have any ideas?</p>
  
  <p>An example of my structure: 
  <img src="https://i.stack.imgur.com/clhLs.png" alt="An example of my structure">
  An example of how I want to map a structure to a table:
  <img src="https://i.stack.imgur.com/Aj5aZ.png" alt="An example of how I want to map a structure to a table"></p>