We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5705d14 commit e75c290Copy full SHA for e75c290
LibraryCPPTemplate/graph.h
@@ -57,7 +57,7 @@ class Graph {
57
edgeMatrix.resize(other.edgeMatrix.size());
58
for (size_t i = 0; i < other.edgeMatrix.size(); ++i) {
59
if (other.edgeMatrix[i] != nullptr) {
60
- edgeMatrix[i] = new Edge(*other.edgeMatrix[i]); // Êîïèðóåì îáúåêò Edge
+ edgeMatrix[i] = new Edge(*other.edgeMatrix[i]);
61
}
62
else {
63
edgeMatrix[i] = nullptr;
@@ -89,7 +89,6 @@ class Graph {
89
90
Edge*& exists_edge = edgeMatrix[startIv * qty_vertex + endIv];
91
92
- /
93
if (exists_edge != nullptr) {
94
delete exists_edge;
95
0 commit comments