Tree analysis