From 1e939e597964fa081b347e40af2be1069867b906 Mon Sep 17 00:00:00 2001 From: Jaron Kent-Dobias Date: Fri, 17 May 2019 16:38:24 -0400 Subject: added support for running percolation using the fuse network rules --- lib/include/network.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'lib/include') diff --git a/lib/include/network.hpp b/lib/include/network.hpp index dd11342..15cb8ea 100644 --- a/lib/include/network.hpp +++ b/lib/include/network.hpp @@ -82,3 +82,18 @@ class elastic_network : public network { current_info get_current_info() override; }; +class percolation_network : public network { + private: + double weight; + public: + problem hook_x; + problem hook_y; + + percolation_network(const graph&, cholmod_common*); + percolation_network(const percolation_network&); + + void fracture(hooks&, double weight = 0.5, double cutoff = 1e-10); + void break_edge(unsigned, bool unbreak = false) override; + current_info get_current_info() override; +}; + -- cgit v1.2.3-70-g09d2