Polynomial-time metrics for attributed trees | Synapse