diff options
author | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-09-24 17:53:08 -0400 |
---|---|---|
committer | Jaron Kent-Dobias <jaron@kent-dobias.com> | 2019-09-24 17:53:08 -0400 |
commit | d9d3b0518ce5e0a52b9a0bae55fa5d8ca5b3c515 (patch) | |
tree | 393bd012dceb989b273da7793256518a78bdfb39 /lib/include | |
parent | b1cc0118c49b708c7f3f4d19f37102784d218347 (diff) | |
download | fuse_networks-d9d3b0518ce5e0a52b9a0bae55fa5d8ca5b3c515.tar.gz fuse_networks-d9d3b0518ce5e0a52b9a0bae55fa5d8ca5b3c515.tar.bz2 fuse_networks-d9d3b0518ce5e0a52b9a0bae55fa5d8ca5b3c515.zip |
made backbone cleaning more efficient by restricting to one-side-broken only, updated the crack finder to this new paradigm
Diffstat (limited to 'lib/include')
-rw-r--r-- | lib/include/network.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/include/network.hpp b/lib/include/network.hpp index 29bf55a..5b474bb 100644 --- a/lib/include/network.hpp +++ b/lib/include/network.hpp @@ -35,9 +35,10 @@ private: void update_backbone(const std::vector<double>& c); void break_edge(unsigned, bool unbreak = false); void get_cycle_edges_helper(std::set<unsigned>&, std::set<unsigned>&, unsigned, unsigned) const; - std::set<unsigned> get_cycle_edges(unsigned) const; bool find_cycle_helper(std::array<unsigned, 2>&, const std::set<unsigned>&, unsigned, unsigned, unsigned) const; + bool get_cycle_helper(std::array<unsigned, 2>&, std::set<unsigned>&, const std::set<unsigned>&, unsigned, unsigned, + unsigned) const; std::array<unsigned, 2> find_cycle(const std::set<unsigned>&, unsigned, unsigned) const; void get_cluster_edges_helper(std::set<unsigned>&, unsigned) const; std::set<unsigned> get_cluster_edges(unsigned) const; @@ -56,7 +57,10 @@ public: network(const graph&, cholmod_common*); void set_thresholds(double, std::mt19937&); - void fracture(hooks&, bool one_axis = true); + void fracture(hooks&); + + std::set<unsigned> get_cycle_edges(unsigned) const; + std::pair<std::array<unsigned, 2>, std::set<unsigned>> get_cycle(const std::set<unsigned>&, unsigned, unsigned) const; virtual current_info get_current_info() { current_info empty; |