Repository navigation
Pu/issue 442 - #446
Pu/issue 442#446
Conversation
04e8713 to
e303ac9
Compare
bardek8
left a comment
There was a problem hiding this comment.
Thanks for fixing that!
To increase readability of this code I would suggest that instead of two sets processed and onStack we have one map storing the stage of processing a node (a number or enum?).
bardek8
left a comment
There was a problem hiding this comment.
Oh, this is much simpler and more readable now, thanks!
As the final nit I would rearrange the switch blocks in the order of status evolution: ON_STACK-> PROCESSED -> POPPED
done |
|
Thanks a lot for the whole refactor effort, now it will be much easier to understand it by the reader. |
wojciechczerniak
left a comment
There was a problem hiding this comment.
Great 👍
Please add this change to the CHANGELOG.md file under the[Unreleased] section
Co-authored-by: Wojciech Czerniak <wojciech.czerniak@gmail.com>
Co-authored-by: Anna Cieślik <scarletfog@gmail.com>
Context
Slightly broken logic in topological sort is now fixed. Should resolve some issues with correctness when building engine.
How has this been tested?
Types of changes
Related issue(s):
Checklist: