Implement topological sort with DAG validation and cycle detection#6568
Implement topological sort with DAG validation and cycle detection#6568the-yash-rajput wants to merge 12 commits intoTheAlgorithms:masterfrom
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6568 +/- ##
============================================
+ Coverage 75.19% 75.22% +0.03%
- Complexity 5614 5625 +11
============================================
Files 690 691 +1
Lines 19407 19445 +38
Branches 3755 3763 +8
============================================
+ Hits 14593 14628 +35
- Misses 4247 4250 +3
Partials 567 567 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…o TopologicalSort
|
Looks like this is already in the repository, but in the wrong package it is definitely related to the graph |
|
@siriak, @DenizAltunkapan, Could you please help clarify our approach here? There are already several implementations of this algorithm in the repository: The previous implementation follows a more traditional pattern as it operates directly on color values. From my perspective, the optimal solution would be to:
What are your thoughts on this approach? |
|
@alxkm Let’s first align on the right strategy and once confirmed, we can proceed with the necessary implementation. |
|
@the-yash-rajput, you can proceed with the following approach as I described - creating a generic implementation of the algorithm.
This approach will provide the traditional algorithm that uses color values. What do you think about this? |
|
@alxkm I agree with the proposed approach, I think both implementations should be stored together. P.S. I reviewed this 2 days ago, but forgot to write a reply and then lost the tab -_- |
|
@the-yash-rajput @alxkm @siriak I also agree - and by the way sorry for the late reply... I was on vacation |
|
@alxkm @siriak @DenizAltunkapan Okay, I am starting on this. |
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution! |
clang-format -i --style=file path/to/your/file.java