We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ffe7b3 commit e1d014cCopy full SHA for e1d014c
1 file changed
include/graph/graph.hpp
@@ -98,7 +98,7 @@ class Graph {
98
return in_edges_[layerID].size();
99
}
100
101
- std::vector<int> getInLayers(size_t layerID) const {
+ [[nodiscard]] std::vector<int> getInLayers(size_t layerID) const {
102
if (layerID >= in_edges_.size()) {
103
throw std::invalid_argument("Input edges array do not contain this ID.");
104
0 commit comments