some tree and graph questions