File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
examples/NetworkDynamicsExample Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 36
36
# ignore the packaging folder contents from git
37
37
packaging /
38
38
# ignore vscode files
39
- .vscode
39
+ .vscode
40
+ .code-workspace
41
+ CXXGraph.code-workspace
Original file line number Diff line number Diff line change @@ -26,10 +26,9 @@ int main() {
26
26
auto degreeMatrix = graph.getDegreeMatrix ();
27
27
for (const auto & nodePair : *degreeMatrix) {
28
28
const CXXGraph::shared<const CXXGraph::Node<int >>& node = nodePair.first ;
29
- const std::vector< int >& degrees = nodePair.second ;
29
+ const unsigned int degree = nodePair.second ;
30
30
31
- std::cout << " Node: " << node->getId () << " , Degree: " << degrees[0 ]
32
- << " \n " ;
31
+ std::cout << " Node: " << node->getId () << " , Degree: " << degree << " \n " ;
33
32
}
34
33
auto laplacianMatrix = graph.getLaplacianMatrix ();
35
34
for (const auto & nodePair : *laplacianMatrix) {
You can’t perform that action at this time.
0 commit comments