treeAndGraph