nnako / freeplane-python-io

a Python library to directly access Freeplane mindmap files
GNU General Public License v3.0
12 stars 5 forks source link

Added: __eq__ method for Mindmap and Node classes. #4

Open drakes00 opened 1 year ago

drakes00 commented 1 year ago

Mindmap are compared by recursively comparing their nodes. Nodes are compared by comparing some of their attributes (plaintext, hyperlink, imagepath, details) and then recursively comparing their children.

See #3 for details.

I was not able to compare Node.notes fields since it does not seem to exists. I however added Node.imagepath to comparison.