tree and graphs