Skip to content

Commit ee53d93

Browse files
committed
Remove useless line
1 parent 3f95c6b commit ee53d93

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

include/CXXGraph/Graph/Graph_impl.hpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,7 @@ shared<DegreeMatrix<T>> Graph<T>::getDegreeMatrix() const {
545545
const std::vector<std::pair<shared<const Node<T>>, shared<const Edge<T>>>>
546546
&neighbors = nodePair.second;
547547

548-
const int degree = neighbors.size();
549-
(*degreeMatrix)[node] = degree;
548+
(*degreeMatrix)[node] = neighbors.size();
550549
}
551550

552551
return degreeMatrix;

0 commit comments

Comments
 (0)