completed treegraph and treepalette