Let's assume there is some information in a table:
a simple node


To turn this table into a tree, you need to add a foreign key:
a simple tree


a simple directed graph

a structured tree

a structured directed graph