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

Introduce topological ordering to RG #165

Merged
merged 7 commits into from
Dec 13, 2023
Merged

Introduce topological ordering to RG #165

merged 7 commits into from
Dec 13, 2023

Conversation

lkct
Copy link
Member

@lkct lkct commented Dec 8, 2023

This PR introduced two new util classes:

  • Scope: A class that replaces frozenset to be used as the scope. The main difference is that total ordering is introduced.
  • OrderedSet: A data structure that combines set for de-duplication and list for fixed ordering.

This PR also changed the comparison of RGNode, so that topo sort can be very easily done.

TODO: not yet added ordering to SymbC.
Possible issues: See #164.

@lkct lkct added the enhancement New feature or request label Dec 8, 2023
@lkct lkct self-assigned this Dec 8, 2023
@lkct lkct merged commit bc9d592 into main Dec 13, 2023
2 checks passed
@lkct lkct deleted the rgnode_sorting branch December 13, 2023 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant