X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraph.h;h=718da2b694d05e7426cf81d084427e7ecf72f6b6;hb=8765ab59cdddad67284007813ef25934ea0042ce;hp=e7c4ac60b9236472fc6af174a6056a69f1000e43;hpb=f566e7c6040e5e60d140f3da625fe5f191eebbcc;p=lyx.git diff --git a/src/graph.h b/src/graph.h index e7c4ac60b9..718da2b694 100644 --- a/src/graph.h +++ b/src/graph.h @@ -1,8 +1,4 @@ // -*- C++ -*- - -#ifndef GRAPH_H -#define GRAPH_H - /** * \file graph.h * This file is part of LyX, the document processor. @@ -10,16 +6,21 @@ * * \author Dekel Tsur * - * Full author contact details are available in file CREDITS + * Full author contact details are available in file CREDITS. */ -#include "LString.h" +#ifndef GRAPH_H +#define GRAPH_H #include #include + +namespace lyx { + + class Graph { -public: +public: Graph() : numedges_(0) {}; /// typedef std::vector EdgePath; @@ -44,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; @@ -62,4 +64,7 @@ private: }; + +} // namespace lyx + #endif //GRAPH_H