add tree and graphas