X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraph.h;h=718da2b694d05e7426cf81d084427e7ecf72f6b6;hb=8765ab59cdddad67284007813ef25934ea0042ce;hp=4a8477cbf965ceca7a09253f7bf13911507b945c;hpb=236ea81bc5c0ce7101c9460d1ee97b8f3c9be9df;p=lyx.git diff --git a/src/graph.h b/src/graph.h index 4a8477cbf9..718da2b694 100644 --- a/src/graph.h +++ b/src/graph.h @@ -12,11 +12,13 @@ #ifndef GRAPH_H #define GRAPH_H -#include "support/std_string.h" - #include #include + +namespace lyx { + + class Graph { public: Graph() : numedges_(0) {}; @@ -43,7 +45,8 @@ private: int bfs_init(int, bool clear_visited = true); /// - struct Vertex { + class Vertex { + public: std::vector in_vertices; std::vector out_vertices; std::vector out_edges; @@ -61,4 +64,7 @@ private: }; + +} // namespace lyx + #endif //GRAPH_H