Letractively / rdflib

Automatically exported from code.google.com/p/rdflib
Other
0 stars 0 forks source link

g1 == g2 doesn't test graph equivalence #24

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create two graphs, g1 and g2
2. Make them equivalent
3. assert g1 == g2

What is the expected output? What do you see instead?

Expected: True
Actual: False

What version of the product are you using? On what operating system?

2.4.0

Please provide any additional information below.

Original issue reported on code.google.com by aaronsw....@gmail.com on 24 Apr 2008 at 2:54

GoogleCodeExporter commented 9 years ago

Original comment by eik...@gmail.com on 10 Feb 2009 at 8:34

GoogleCodeExporter commented 9 years ago

Original comment by eik...@gmail.com on 1 Feb 2010 at 8:34

GoogleCodeExporter commented 9 years ago
I think this is the correct behaviour, but it should be documented. There is the
isomorphic function in graphutils for testing this, but it maybe be expensive. 

I recommend WontFix, but document this for the graph class.

Original comment by gromgull on 5 Feb 2010 at 1:45

GoogleCodeExporter commented 9 years ago
Over a year ago, but still open.

from rdflib import compare
iso1 = compare.to_isomorphic(graph1)
iso2 = compare.to_isomorphic(graph2)
assert iso1 == iso2

should solve your problem. Who can colse this issue?

Original comment by danielmr...@gmail.com on 8 May 2011 at 10:35

GoogleCodeExporter commented 9 years ago
(cleaning up issue list)

Original comment by gromgull on 19 Aug 2011 at 6:06