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

feat: deterministic topo sort using iterative dfs #471

Merged
merged 5 commits into from
Feb 18, 2025
Merged

Conversation

JanLewDev
Copy link
Contributor

What type of PR is this? (check all applicable)

  • Feature

Description

Make

Related Issues and PRs

Added/updated tests?

  • Yes

Copy link

github-actions bot commented Feb 14, 2025

Flamegraph.com report

flamegraph.pprof
See in flamegraph.com

Created by Flamegraph.com Github Action

@trungnotchung
Copy link
Member

why are we changing from kahnsAlgorithm to dfs. can't just sort neighbors fix the issue?

@JanLewDev
Copy link
Contributor Author

why are we changing from kahnsAlgorithm to dfs. can't just sort neighbors fix the issue?

this pr also solves #470

Copy link
Member

@sfroment sfroment left a comment

Choose a reason for hiding this comment

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

let's discuss this part

@trungnotchung
Copy link
Member

i think we should add some tests for the case graph contains a cycle

Copy link
Member

@trungnotchung trungnotchung left a comment

Choose a reason for hiding this comment

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

lgtm

@sfroment sfroment merged commit 5e08e18 into main Feb 18, 2025
14 checks passed
sfroment added a commit that referenced this pull request Feb 19, 2025
* origin/main:
  fix: dialTimeout (#484)
  fix: serialization & add types pkg (#472)
  feat: deterministic topo sort using iterative dfs (#471)
  refactor(object): linearize pair semantic (#476)
  refactor: remove unuse transport (#466)
  fix: pr template (#464)
sfroment added a commit that referenced this pull request Feb 19, 2025
* origin/main:
  fix: dialTimeout (#484)
  fix: serialization & add types pkg (#472)
  feat: deterministic topo sort using iterative dfs (#471)
  refactor(object): linearize pair semantic (#476)
  refactor: remove unuse transport (#466)
  fix: pr template (#464)

Signed-off-by: Sacha Froment <[email protected]>
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.

[FEATURE] - Use iterative dfs for topological sort
3 participants