Allow comparison of dependency graphs for equality