68 |
*/ |
*/ |
69 |
inline void replace(Vertex* v0, Vertex* v1) |
inline void replace(Vertex* v0, Vertex* v1) |
70 |
{ |
{ |
|
ffout(0) << *v0 << " -> " << *v1 << '\n'; |
|
71 |
for (size_t i = 0; i<numberOfVertices(); ++i) { |
for (size_t i = 0; i<numberOfVertices(); ++i) { |
72 |
if (__vertices[i] == v0) { |
if (__vertices[i] == v0) { |
73 |
__vertices[i] = v1; |
__vertices[i] = v1; |
74 |
return; |
return; |
75 |
} |
} |
|
fferr(0) << __FILE__ << ':' << __LINE__ << ':' << *v1 << " was not found!\n"; |
|
|
// std::exit(1); |
|
76 |
} |
} |
77 |
|
fferr(0) << v0 << " -> " << v1 << '\n'; |
78 |
|
fferr(0) << __FILE__ << ':' << __LINE__ << ':' << v0 << " was not found!\n"; |
79 |
|
std::exit(1); |
80 |
} |
} |
81 |
|
|
82 |
//! Number of Vertices. |
//! Number of Vertices. |