diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2022-10-19 17:27:59 +0200 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2022-10-19 17:27:59 +0200 |
commit | e4d86723227dc3694bf502dfd492e8c2b1887c2c (patch) | |
tree | fa114525f8a24caad2425c3753c440e7520085e4 /excitation.cpp | |
parent | 6308773c0b6b745d49d20dc2afd6ab7ec63cb996 (diff) | |
download | code-master.tar.gz code-master.tar.bz2 code-master.zip |
Diffstat (limited to 'excitation.cpp')
-rw-r--r-- | excitation.cpp | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/excitation.cpp b/excitation.cpp index d09410b..8a2c409 100644 --- a/excitation.cpp +++ b/excitation.cpp @@ -28,11 +28,8 @@ int main(int argc, char* argv[]) { for (unsigned i = 0; i < G.vertices.size() / 2; i++) { unsigned j1 = pm.GetMatch(i); - std::cout - << G.vertices[i].coordinate[0] << " " - << G.vertices[i].coordinate[1] << " " - << G.vertices[j1].coordinate[0] << " " - << G.vertices[j1].coordinate[1] << std::endl; + std::cout << G.vertices[i].coordinate[0] << " " << G.vertices[i].coordinate[1] << " " + << G.vertices[j1].coordinate[0] << " " << G.vertices[j1].coordinate[1] << std::endl; } std::vector<bool> matching(G.edges.size()); @@ -41,7 +38,6 @@ int main(int argc, char* argv[]) { matching[i] = edgeMatched(pm, G.edges[i]); } - while (true) { unsigned eFlip = r.variate<unsigned, std::uniform_int_distribution>(0, G.edges.size() - 1); @@ -76,11 +72,9 @@ int main(int argc, char* argv[]) { for (unsigned i = 0; i < G.edges.size(); i++) { if (!matching[i] && edgeMatched(pm, G.edges[i])) { - std::cout - << G.edges[i].tail->coordinate[0] << " " - << G.edges[i].tail->coordinate[1] << " " - << G.edges[i].head->coordinate[0] << " " - << G.edges[i].head->coordinate[1] << std::endl; + std::cout << G.edges[i].tail->coordinate[0] << " " << G.edges[i].tail->coordinate[1] << " " + << G.edges[i].head->coordinate[0] << " " << G.edges[i].head->coordinate[1] + << std::endl; } } |