You need to tell Sage that the edge labels matter, apparently: sage: foo = Graph() sage: foo.add_edges([(0, 1, 1), (0, 2, 2)]) sage: bar = Graph() sage: bar.add_edges([(0, 1, 2), (0, 2, 1)]) sage: foo == bar True sage: foo.weighted(True) sage: foo == bar True sage: bar.weighted(True) sage: foo == bar False
If one graph isn't considered weighted, but the other is, Sage can still return True. I've fixed this in ticket #5003. --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---
