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

Less clever and more useful colouring #24

Merged
merged 2 commits into from
Jan 2, 2025

Conversation

eggrobin
Copy link
Member

@eggrobin eggrobin commented Jan 1, 2025

In #23 I got nerd-sniped by a cool graph theory problem, but we do not actually care about distinguishing the independent arcs; we care about telling apart the long ones from the short ones. Colouring random arcs that are part of short cycles in colours that correspond to near-critical cycles is misleading. Also deal with the problem of dark backgrounds by using white text instead of skipping colour 1.
Example on the graph from mockingbirdnest/Principia#4152:

Before After
osaca_dg-cropped (2) osaca_dg-cropped (3)

@eggrobin eggrobin merged commit cb52caf into mockingbirdnest:master Jan 2, 2025
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