diff --git a/.DS_Store b/.DS_Store index dda9f29f83521db392f0f722d20c87f943f7d294..7e6bf5aef2d8854815dd82ef796eeda76b85382d 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/source/constant.h b/source/constant.h index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..9fae1a841543ce6b14d561c86c362d3a98e2026e 100644 --- a/source/constant.h +++ b/source/constant.h @@ -0,0 +1,22 @@ +#pragma once + +#include "matrix_new.h" +#include "graph.h" + +#include <vector> +#include <limits> +#include <set> //хранит уникальные элементы в отсортированном порядке + +using node_name_t = unsigned int; +using weight_t = double; +using matrix_t = linalg::Matrix<weight_t>; + +template<typename T> +using graph_t = graph::Graph<node_name_t, T, weight_t> +using components_t = std::set<std::set<node_name_t>>; +using route_t = std::vector<node_name_t> + +const double INF = std::numeric_limits<double>::infinity(); +const double EPS = srd::numeric_limits<double>::epsilon(); + +