add tree and graph utility