basic tree structure designed with graphs