Does MPSNodeComparator struggle with cyclic structures?

29 views
Skip to first unread message

rwalt...@gmail.com

unread,
Apr 10, 2018, 8:22:39 AM4/10/18
to mbeddr-discuss
Hi all,

comparing the following trees with MPSNodeComparator.compare(left, right, null, true, true) yields no differences and considers the trees equal, given that the following is true:
A == A' == A'' == A'''
B == B' == B'' == B'''
C == C'
Where  == means that the nodes are semantically equal (different identity, same property values).


Structurally, these trees are different. My question: is this intentional or a bug?


Also, I kinda struggle to understand how the comparison algorithm manages to break cyclic dependencies, so if anyone cares to explain that to me, I'm most curious.


Thanks!



Reply all
Reply to author
Forward
0 new messages