summaryrefslogtreecommitdiff
path: root/excitation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'excitation.cpp')
-rw-r--r--excitation.cpp16
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;
}
}