Add capability to compare diagram elements