RDFLib/rdflib — Issue #23: g1 == g2 doesn't test graph equivalence
Author: gjhiggins
Created: 2012-02-20 08:30:41+00:00
State: closed

aaronsw....@gmail.com, 2008-04-24T14:54:01.000Z

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.

Comment 1 by eik...@gmail.com

Comment 2 by eik...@gmail.com

Comment 3 by gromgull
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.

Comment 4 by danielmr...@gmail.com
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?

Comment 5 by gromgull
(cleaning up issue list)