Skip to content

Commit

Permalink
lab4 update
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-anastasiia committed Nov 25, 2024
1 parent edf9a44 commit e3e0ca8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion LibraryCPPTemplate/Tests/graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ int main() {
}

//////////Vertex removal check//////////////////////////////////////////
graph.add_Edge(0, 1, 10);
graph.add_Edge(2, 3, 5);
graph.add_Edge(0, 4, 1);

Expand Down
1 change: 1 addition & 0 deletions LibraryCPPTemplate/graph.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Graph {
~Graph() {
for (size_t i = 0; i < edgeMatrix.size(); ++i) {
delete edgeMatrix[i];
edgeMatrix[i] = nullptr;
}
}

Expand Down

0 comments on commit e3e0ca8

Please sign in to comment.