25 : std::runtime_error(message) {}
42 const std::string& json_text);
59 const std::string& path);
Root ANP model: structure, judgments, supermatrices, and priorities.
Definition network.hpp:259
Thrown on JSON parse, validation, or I/O errors.
Definition json_io.hpp:19
JsonIoError(const std::string &message)
Definition json_io.hpp:24
Analytic Network Process computational library.
Definition eigen.hpp:14
std::unique_ptr< AnpNetwork > load_network_file(const std::string &path)
Loads a network from a file.
std::unique_ptr< AnpNetwork > network_from_json(const std::string &json_text)
Parses JSON produced by network_to_json.
void save_network_file(const AnpNetwork &network, const std::string &path)
Writes a network to a file.
std::string network_to_json(const AnpNetwork &network)
Serializes a network (including subnetworks and layout hints) to JSON.
ANP network model: clusters, nodes, connections, and calculations.