Attributed tree homomorphism using association graphs