FIxed tree edge comparison