diff options
Diffstat (limited to 'lib/include')
| -rw-r--r-- | lib/include/graph.hpp | 11 | 
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/include/graph.hpp b/lib/include/graph.hpp index 75d54f4..d746ddd 100644 --- a/lib/include/graph.hpp +++ b/lib/include/graph.hpp @@ -4,8 +4,11 @@  #include <cmath>  #include <vector>  #include <array> -#include <map> +#include <unordered_map>  #include <random> +#include <list> +#include <exception> +  class graph {    public: @@ -16,9 +19,13 @@ class graph {      typedef struct vertex {        coordinate r; +      std::vector<coordinate> polygon;      } vertex; -    typedef std::array<unsigned int, 2> edge; +    typedef struct edge { +      std::array<unsigned int, 2> v; +      coordinate r; +    } edge;      coordinate L;  | 
