Learning to compare graph layouts