From 19d657b60b22159359f7a229f5a5b73e729cff79 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Wed, 6 Nov 2019 13:55:38 -0500 Subject: added support for saving networks to the library and revamped the sample method --- lib/include/graph.hpp | 3 +++ lib/include/network.hpp | 3 +++ 2 files changed, 6 insertions(+) (limited to 'lib/include') 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 #include #include +#include #include #include @@ -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 #include #include +#include #include #include #include @@ -66,6 +67,8 @@ public: current_info empty; return empty; }; + + std::string write(); }; class fuse_network : public network { -- cgit v1.2.3-70-g09d2