diff options
Diffstat (limited to 'lib/include')
-rw-r--r-- | lib/include/network.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
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; +}; + |