Add graph tree structure