From 721260982551ec8ba51b9e7b9419031313aa0de0 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Mon, 10 Oct 2022 20:11:28 +0200 Subject: Stopped precomputing the faces to save a lot of memory and waste almost no time. --- rbmp.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'rbmp.hpp') diff --git a/rbmp.hpp b/rbmp.hpp index 571fb05..02ca5ad 100644 --- a/rbmp.hpp +++ b/rbmp.hpp @@ -11,6 +11,9 @@ using Rng = randutils::random_generator; + +class Graph { +public: class Edge; class HalfEdge; @@ -78,9 +81,6 @@ public: blue.addEdge(halfedges[1]); } }; - -class Graph { -public: std::vector vertices; std::vector edges; @@ -101,6 +101,6 @@ public: } }; -bool edgeMatched(PerfectMatching& pm, const Edge& e) { +bool edgeMatched(PerfectMatching& pm, const Graph::Edge& e) { return e.halfedges[0].getTail().index == pm.GetMatch(e.halfedges[0].getHead().index); } -- cgit v1.2.3-70-g09d2