X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fgraph.h;h=718da2b694d05e7426cf81d084427e7ecf72f6b6;hb=b9aa557b359463dfb0a2132b665570c8d1e5d605;hp=d8cc03498b259d4d749a9fa8fc99bf1147cae281;hpb=2f71b9d2352543f8c6a891cc7c6d84378eb0387d;p=lyx.git diff --git a/src/graph.h b/src/graph.h index d8cc03498b..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,14 +6,19 @@ * * \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: Graph() : numedges_(0) {}; @@ -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