tree and graph basic concept