summaryrefslogtreecommitdiff
path: root/order.cpp
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2022-10-10 20:11:28 +0200
committerJaron Kent-Dobias <jaron@kent-dobias.com>2022-10-10 20:11:28 +0200
commit721260982551ec8ba51b9e7b9419031313aa0de0 (patch)
tree3b2c8fa19db7f5e071bc74a80d1476e81b47070d /order.cpp
parent21127b705b985faac67110a3a2143c056a54c638 (diff)
downloadcode-721260982551ec8ba51b9e7b9419031313aa0de0.tar.gz
code-721260982551ec8ba51b9e7b9419031313aa0de0.tar.bz2
code-721260982551ec8ba51b9e7b9419031313aa0de0.zip
Stopped precomputing the faces to save a lot of memory and waste almost no time.
Diffstat (limited to 'order.cpp')
-rw-r--r--order.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/order.cpp b/order.cpp
index f43a2a3..3f43377 100644
--- a/order.cpp
+++ b/order.cpp
@@ -50,7 +50,7 @@ int main(int argc, char* argv[]) {
for (unsigned i = 0; i < m; i++) {
PerfectMatching pm(G.vertices.size(), G.edges.size());
- for (const Edge& e : G.edges) {
+ for (const Graph::Edge& e : G.edges) {
pm.AddEdge(e.halfedges[0].getHead().index, e.halfedges[0].getTail().index, r.variate<double, std::exponential_distribution>(1));
}