From: John S. <js...@gm...> - 2012-06-20 06:54:39
|
Thanks to Vladimir Kostyukov, all graph classes in JGraphT now inherit custom equals+hashCode from AbstractGraph. This means that g1.equals(g2) will now be based on comparing the vertex and edge sets for equality rather than on graph object identity. For more info, there's a new section at the beginning of this wiki page: https://github.com/jgrapht/jgrapht/wiki/EqualsAndHashCode For some of the details worked through during code review, see the pull request: https://github.com/jgrapht/jgrapht/pull/6 JVS |