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

Graph Equivalence Changes #491

Merged
merged 19 commits into from
Feb 19, 2021
Merged

Graph Equivalence Changes #491

merged 19 commits into from
Feb 19, 2021

Conversation

emmanvg
Copy link
Contributor

@emmanvg emmanvg commented Feb 16, 2021

  • fix in algorithm to guarantee symmetry
  • add different functions for "similarity" and "equivalence"

busted main loop, symmetrical properties not present
- new methods for graph equivalence and similarity
- remove sorting and len comparisons
- rename some variables
@emmanvg emmanvg added this to the 3.0.0 milestone Feb 16, 2021
@emmanvg emmanvg requested a review from clenk February 16, 2021 14:34
@codecov-io
Copy link

Codecov Report

Merging #491 (d2d85ba) into master (03b3423) will decrease coverage by 0.00%.
The diff coverage is 87.38%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #491      +/-   ##
==========================================
- Coverage   89.27%   89.27%   -0.01%     
==========================================
  Files         146      147       +1     
  Lines       16032    16442     +410     
==========================================
+ Hits        14313    14678     +365     
- Misses       1719     1764      +45     
Impacted Files Coverage Δ
stix2/environment.py 58.94% <18.18%> (-3.98%) ⬇️
stix2/equivalence/object/__init__.py 84.57% <65.71%> (-4.38%) ⬇️
stix2/equivalence/graph/__init__.py 78.00% <81.81%> (-8.67%) ⬇️
stix2/test/v20/test_environment.py 100.00% <100.00%> (ø)
stix2/test/v21/test_environment.py 100.00% <100.00%> (ø)
stix2/parsing.py 80.00% <0.00%> (-4.32%) ⬇️
stix2/registration.py 81.17% <0.00%> (-0.85%) ⬇️
stix2/workbench.py 99.25% <0.00%> (-0.75%) ⬇️
stix2/properties.py 74.33% <0.00%> (-0.07%) ⬇️
stix2/v21/observables.py 34.69% <0.00%> (ø)
... and 16 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 03b3423...d2d85ba. Read the comment docs.

Copy link
Contributor

@clenk clenk left a comment

Choose a reason for hiding this comment

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

Looking good :) just a few ideas for small improvements.

stix2/environment.py Outdated Show resolved Hide resolved
stix2/equivalence/graph/__init__.py Outdated Show resolved Hide resolved
stix2/environment.py Outdated Show resolved Hide resolved
stix2/equivalence/object/__init__.py Outdated Show resolved Hide resolved
stix2/environment.py Outdated Show resolved Hide resolved
stix2/environment.py Outdated Show resolved Hide resolved
stix2/equivalence/object/__init__.py Outdated Show resolved Hide resolved
stix2/equivalence/object/__init__.py Outdated Show resolved Hide resolved
stix2/equivalence/object/__init__.py Show resolved Hide resolved
Copy link
Contributor

@clenk clenk left a comment

Choose a reason for hiding this comment

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

Looks great, thanks @emmanvg!

@clenk clenk merged commit 64608e7 into oasis-open:master Feb 19, 2021
@emmanvg emmanvg deleted the graph-eq-changes branch February 19, 2021 14:12
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.

3 participants