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

Final edge creation #333

Merged
merged 12 commits into from
Dec 18, 2024
Merged

Conversation

laserkelvin
Copy link
Collaborator

This PR modifies the Edge class to get exact parity in the number of edges with ovito, thanks to code contributed by Sajid Mannan from IIT Delhi.

We introduce an is_undirected flag to the Edge class that modifies the behavior of the __eq__ for this class, which propagates to the behavior of how edges are treated in set() for determining uniqueness.

I've added a documented set of tests to explain what the expected behavior of the edge sets are.

@laserkelvin laserkelvin added the bug Something isn't working label Dec 17, 2024
Copy link
Collaborator

@melo-gonzo melo-gonzo left a comment

Choose a reason for hiding this comment

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

LGTM

@laserkelvin laserkelvin merged commit 8a0765d into IntelLabs:main Dec 18, 2024
2 of 3 checks passed
@laserkelvin laserkelvin deleted the final-edge-creation branch December 18, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants