#ifndef MY_STRUCTURES #define MY_STRUCTURES #include #include using namespace std; using Matrix = vector>; typedef struct { size_t to; int cost; } Edge; typedef struct { vector neighbours; } Vertex; using Graph = vector; enum Color { white, gray, black }; enum eStatus { absent, tree, backward, forward, cross }; typedef struct { int depth; Color color; int previous; } bfs_vertex; typedef struct { int start; int end; } Time_t; typedef struct { Color color; int previous; Time_t time; } dfs_vertex; #endif