Add tree and graph