Skip to content

Commit e75c290

Browse files
committed
lab 4 update
1 parent 5705d14 commit e75c290

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

LibraryCPPTemplate/graph.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Graph {
5757
edgeMatrix.resize(other.edgeMatrix.size());
5858
for (size_t i = 0; i < other.edgeMatrix.size(); ++i) {
5959
if (other.edgeMatrix[i] != nullptr) {
60-
edgeMatrix[i] = new Edge(*other.edgeMatrix[i]); // Êîïèðóåì îáúåêò Edge
60+
edgeMatrix[i] = new Edge(*other.edgeMatrix[i]);
6161
}
6262
else {
6363
edgeMatrix[i] = nullptr;
@@ -89,7 +89,6 @@ class Graph {
8989

9090
Edge*& exists_edge = edgeMatrix[startIv * qty_vertex + endIv];
9191

92-
/
9392
if (exists_edge != nullptr) {
9493
delete exists_edge;
9594
}

0 commit comments

Comments
 (0)