Here is an example that looks less artificial:

sage: list(set([-1,-2]))
[-2, -1]
sage: list(set([-2,-1]))
[-1, -2]
sage: G=Graph(); G.add_vertex(-2); G.add_vertex(-1)
sage: H=Graph(); H.add_vertex(-1); H.add_vertex(-2)
sage: G == H
True
sage: G.vertices() == H.vertices()
True
sage: list(G.vertex_iterator()) == list(H.vertex_iterator())
False

The trick underlying the example is the same as before:

sage: hash(-1) == hash(-2)
True


Cheers,

Erik Massop

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel.
For more options, visit https://groups.google.com/d/optout.

Reply via email to