-
Notifications
You must be signed in to change notification settings - Fork 19.9k
Adding Kosaraju Algorithm #3859
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
Conversation
shivu2002a
commented
Jan 17, 2023
- [ x] I have read CONTRIBUTING.md.
- [ x] This pull request is all my own work -- I have not plagiarized it.
- [ x] All filenames are in PascalCase.
- [ x] All functions and variable names follow Java naming conventions.
- All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good, could you please add some JUnit tests? (see https://github.com/TheAlgorithms/Java/tree/master/src/test/java/com/thealgorithms)
Hi, @siriak, I've added test cases also. |
src/test/java/com/thealgorithms/datastructures/graphs/KosarajuTest.java
Outdated
Show resolved
Hide resolved
src/main/java/com/thealgorithms/datastructures/graphs/Kosaraju.java
Outdated
Show resolved
Hide resolved
@siriak Suggested changes have been implemented. |
src/main/java/com/thealgorithms/datastructures/graphs/Kosaraju.java
Outdated
Show resolved
Hide resolved
src/main/java/com/thealgorithms/datastructures/graphs/Kosaraju.java
Outdated
Show resolved
Hide resolved
src/main/java/com/thealgorithms/datastructures/graphs/Kosaraju.java
Outdated
Show resolved
Hide resolved
src/test/java/com/thealgorithms/datastructures/graphs/KosarajuTest.java
Outdated
Show resolved
Hide resolved
@siriak Done!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!