Skip to content

Commit e1d014c

Browse files
authored
Update graph.hpp
1 parent 6ffe7b3 commit e1d014c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/graph/graph.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ class Graph {
9898
return in_edges_[layerID].size();
9999
}
100100

101-
std::vector<int> getInLayers(size_t layerID) const {
101+
[[nodiscard]] std::vector<int> getInLayers(size_t layerID) const {
102102
if (layerID >= in_edges_.size()) {
103103
throw std::invalid_argument("Input edges array do not contain this ID.");
104104
}

0 commit comments

Comments
 (0)