-
Notifications
You must be signed in to change notification settings - Fork 55
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
Feature/coloring: Four colorings for Zephyr and Pegasus, and a two coloring for Chimera #243
Conversation
@arcondello I review this |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #243 +/- ##
==========================================
+ Coverage 75.81% 75.96% +0.14%
==========================================
Files 31 31
Lines 2171 2184 +13
==========================================
+ Hits 1646 1659 +13
Misses 525 525 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can use set equality instead otherwise LGTM. passing the ball to poseidon/neptune (@arcondello / @randomir)
tests/test_regular_coloring.py
Outdated
G = graph(*topology_shape, coordinates=True) | ||
col_dict = {q: color(q) for q in G.nodes} | ||
self.assertTrue(np.all(np.unique(list(col_dict.values())) == | ||
np.arange(num_colors))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
np.arange(num_colors))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Happy to merge, or can wait if you want to address a few minor comments I made below.
Colorings of minimal chromatic number on Chimera, Pegasus and Zephyr graphs in the form of a map using the standard coordinate schemes.