Skip to content

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

Open
drakes00 wants to merge 1 commit intonnako:mainfrom
drakes00:main
Open

Added: __eq__ method for Mindmap and Node classes.#4
drakes00 wants to merge 1 commit intonnako:mainfrom
drakes00:main

Conversation

@drakes00
Copy link

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant