Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend the ZhangUnorderedTreeEditDistance to Return the Optimal Node Mapping #33

Merged
merged 30 commits into from
Sep 5, 2023

Conversation

maarzt
Copy link
Collaborator

@maarzt maarzt commented Jul 19, 2023

The zhang unordered tree edit distance is always associated with a respective mapping between the nodes of the two trees. This PR extends the ZhangUnorderedTreeEditDistance class to also return the optimal node mapping.

This PR is required for mastodon-sc/mastodon-tomancak#26

@sonarcloud
Copy link

sonarcloud bot commented Jul 19, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 6 Code Smells

98.6% 98.6% Coverage
0.0% 0.0% Duplication

@stefanhahmann stefanhahmann self-requested a review August 14, 2023 08:57
Copy link
Collaborator

@stefanhahmann stefanhahmann left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR nicely adds node-mapping between two given trees based on the Zhang unordered edit distance, which is a highly useful feature.

There are some open questions - cf. below. Most important question relates to the number of mappings that created in a specific test case which does not relate to the number of nodes contained in the given trees.

I created a PR that contains suggestions how to improved this PR.

@maarzt maarzt requested a review from stefanhahmann September 5, 2023 13:06
@stefanhahmann
Copy link
Collaborator

I created a PR that contains suggestions how to improved this PR.

* It moves all existing util classes for ZhangUnordered to separate package and makes required methods public

* It contains some javadoc improvements.

* It contains suggestions regarding the code smells detected by sonarcloud: https://sonarcloud.io/project/issues?id=mastodon-sc_mastodon-deep-lineage&pullRequest=33&resolved=false&types=CODE_SMELL

I just see that I created a PR with suggestions, mentioned it, but did not explicitly link it. Thus, you may not have seen it:
#35

@sonarcloud
Copy link

sonarcloud bot commented Sep 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

98.0% 98.0% Coverage
0.0% 0.0% Duplication

warning The version of Java (11.0.20) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17.
Read more here

@stefanhahmann stefanhahmann merged commit eb149ca into master Sep 5, 2023
4 checks passed
@stefanhahmann stefanhahmann deleted the compute-node-mapping branch September 5, 2023 14:25
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.

2 participants