summaryrefslogtreecommitdiff
path: root/lib/include
diff options
context:
space:
mode:
authorJaron Kent-Dobias <jaron@kent-dobias.com>2019-05-07 14:05:32 -0400
committerJaron Kent-Dobias <jaron@kent-dobias.com>2019-05-07 14:05:32 -0400
commit456d748b8cbf141e1fe6e82a7c0106f469e28ba6 (patch)
tree80d2474e8f9f90256501b3d8516e1d432be46658 /lib/include
parent98b6303894018c626b68e135c892af46b4a6b9de (diff)
downloadfuse_networks-456d748b8cbf141e1fe6e82a7c0106f469e28ba6.tar.gz
fuse_networks-456d748b8cbf141e1fe6e82a7c0106f469e28ba6.tar.bz2
fuse_networks-456d748b8cbf141e1fe6e82a7c0106f469e28ba6.zip
added measurements of spanning cluster sizes and conducting backbone sizes
Diffstat (limited to 'lib/include')
-rw-r--r--lib/include/network.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/include/network.hpp b/lib/include/network.hpp
index 8f7bd12..dd11342 100644
--- a/lib/include/network.hpp
+++ b/lib/include/network.hpp
@@ -54,6 +54,8 @@ class network {
network(const network&);
void set_thresholds(double, std::mt19937&);
+ virtual void break_edge(unsigned e, bool unbreak = false) {fuses[e] = !unbreak;};
+ virtual current_info get_current_info() {current_info empty; return empty;};
};
class fuse_network : public network {
@@ -63,10 +65,11 @@ class fuse_network : public network {
fuse_network(const graph&, cholmod_common*);
void fracture(hooks&, double cutoff = 1e-13);
- current_info get_current_info();
};
class elastic_network : public network {
+ private:
+ double weight;
public:
problem hook_x;
problem hook_y;
@@ -75,6 +78,7 @@ class elastic_network : public network {
elastic_network(const elastic_network&);
void fracture(hooks&, double weight = 0.5, double cutoff = 1e-10);
- current_info get_current_info();
+ void break_edge(unsigned, bool unbreak = false) override;
+ current_info get_current_info() override;
};