44 bool is_standard_network()
const;
45 void set_standard_network(
bool is_standard_network);
46 void add_branch(
Branch branch);
47 void add_or_replace_branch(
Branch branch);
48 void drop_branch(
const std::string& uptree_node,
const std::string& downtree_node);
49 bool has_node(
const std::string& name)
const;
50 void update_node(
Node node);
51 const Node& node(
const std::string& name)
const;
52 std::vector<std::reference_wrapper<const Node>> roots()
const;
53 std::vector<Branch> downtree_branches(
const std::string& node)
const;
54 std::vector<const Branch*> branches()
const;
55 std::optional<Branch> uptree_branch(
const std::string& node)
const;
56 const std::vector<std::string>& node_names()
const;
57 std::set<std::string> leaf_nodes()
const;
58 int NoOfBranches()
const;
59 int NoOfNodes()
const;
61 bool operator==(
const ExtNetwork& other)
const;
64 template<
class Serializer>
67 serializer(m_branches);
68 serializer(insert_indexed_node_names);
70 serializer(m_is_standard_network);
74 std::vector<Branch> m_branches;
75 std::vector<std::string> insert_indexed_node_names;
76 std::map<std::string, Node> m_nodes;
77 bool m_is_standard_network{
false};
79 bool has_indexed_node_name(
const std::string& name)
const;
80 void add_indexed_node_name(
const std::string& name);
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30