summaryrefslogtreecommitdiff
path: root/lib/include
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-11-06 13:55:38 -0500
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-11-06 13:55:38 -0500
commit19d657b60b22159359f7a229f5a5b73e729cff79 (patch)
treef0dc1df96e26bdbe3f49032d396a9efe36a3c5df /lib/include
parentba4a31df421ff47de1f8c3dc86daea2cacd942ed (diff)
downloadfuse_networks-19d657b60b22159359f7a229f5a5b73e729cff79.tar.gz
fuse_networks-19d657b60b22159359f7a229f5a5b73e729cff79.tar.bz2
fuse_networks-19d657b60b22159359f7a229f5a5b73e729cff79.zip
added support for saving networks to the library and revamped the sample method
Diffstat (limited to 'lib/include')
-rw-r--r--lib/include/graph.hpp3
-rw-r--r--lib/include/network.hpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/include/graph.hpp b/lib/include/graph.hpp
index 9d2b5a1..c78fe9f 100644
--- a/lib/include/graph.hpp
+++ b/lib/include/graph.hpp
@@ -7,6 +7,7 @@
#include <exception>
#include <list>
#include <random>
+#include <string>
#include <unordered_map>
#include <vector>
@@ -46,4 +47,6 @@ public:
void helper(unsigned n, std::mt19937& rng);
graph const rotate();
+
+ std::string write() const;
};
diff --git a/lib/include/network.hpp b/lib/include/network.hpp
index 5b474bb..d562530 100644
--- a/lib/include/network.hpp
+++ b/lib/include/network.hpp
@@ -5,6 +5,7 @@
#include <limits>
#include <random>
#include <set>
+#include <string>
#include <utility>
#include <valarray>
#include <vector>
@@ -66,6 +67,8 @@ public:
current_info empty;
return empty;
};
+
+ std::string write();
};
class fuse_network : public network {