summaryrefslogtreecommitdiff
path: root/lib/include
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2018-12-12 23:46:58 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2018-12-12 23:46:58 -0500
commitb1b18ae49b0d22d3fbd5146eb6416c8b9e4dd62c (patch)
tree7f65e0b5dedccc9afb455fc69947a3d3808ce67e /lib/include
parent0bba9fcee5e67daa482b89b5d813b23d10474b7f (diff)
downloadfuse_networks-b1b18ae49b0d22d3fbd5146eb6416c8b9e4dd62c.tar.gz
fuse_networks-b1b18ae49b0d22d3fbd5146eb6416c8b9e4dd62c.tar.bz2
fuse_networks-b1b18ae49b0d22d3fbd5146eb6416c8b9e4dd62c.zip
added support for voronoi graph generation—existing example code does not use it yet
Diffstat (limited to 'lib/include')
-rw-r--r--lib/include/graph.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/include/graph.hpp b/lib/include/graph.hpp
index 9a630ff..75d54f4 100644
--- a/lib/include/graph.hpp
+++ b/lib/include/graph.hpp
@@ -4,6 +4,8 @@
#include <cmath>
#include <vector>
#include <array>
+#include <map>
+#include <random>
class graph {
public:
@@ -27,5 +29,6 @@ class graph {
std::vector<edge> dual_edges;
graph(unsigned int Nx, unsigned int Ny);
+ graph(unsigned int Nx, unsigned int Ny, std::mt19937& rng, double = 0.25);
};