-
Notifications
You must be signed in to change notification settings - Fork 123
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
Added reverseDirectedGraph() function #320
Conversation
include/Graph/Graph.hpp
Outdated
if (!isDirectedGraph()) { | ||
throw std::runtime_error(ERR_UNDIR_GRAPH); | ||
} | ||
auto edgeSet = Graph<T>::getEdgeSet(); |
Check warning
Code scanning / Cppcheck (reported by Codacy)
Local variable 'edgeSet' shadows outer variable
* This function reverse the direction of the edges in a directed graph | ||
* | ||
*/ | ||
virtual void reverseDirectedGraph(); |
Check warning
Code scanning / Cppcheck (reported by Codacy)
misra violation 802 with no text in the supplied rule-texts-file
Codecov Report
@@ Coverage Diff @@
## master #320 +/- ##
==========================================
- Coverage 97.24% 97.23% -0.01%
==========================================
Files 54 54
Lines 7793 7850 +57
==========================================
+ Hits 7578 7633 +55
- Misses 215 217 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Can you fix the warnings by Code Scanning? |
Merge LGTM |
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.
Thanks for contributing this! Looks great.
Added reverseDirectedGraph() function (#315) to reverse all connection in a directed graph and related tests.