From 02bff5563d5a0150bde4ae3de9222a1837aefa98 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 10 Oct 2022 20:49:04 +0200 Subject: Merged Graph and AztecDiamond classes. --- order.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'order.cpp') diff --git a/order.cpp b/order.cpp index 3f43377..44b5fa3 100644 --- a/order.cpp +++ b/order.cpp @@ -24,7 +24,7 @@ int main(int argc, char* argv[]) { } Rng r; - Graph G(n, r); + AztecDiamond G(n, r); #pragma omp declare reduction(vec_int_plus : std::vector : \ std::transform(omp_out.begin(), omp_out.end(), omp_in.begin(), omp_out.begin(), std::plus())) \ @@ -50,8 +50,8 @@ int main(int argc, char* argv[]) { for (unsigned i = 0; i < m; i++) { PerfectMatching pm(G.vertices.size(), G.edges.size()); - for (const Graph::Edge& e : G.edges) { - pm.AddEdge(e.halfedges[0].getHead().index, e.halfedges[0].getTail().index, r.variate(1)); + for (const AztecDiamond::Edge& e : G.edges) { + pm.AddEdge(e.head->index, e.tail->index, r.variate(1)); } pm.options.verbose = false; -- cgit v1.2.3-70-g09d2