8 * This file is part of LyX, the document processor.
9 * Licence details can be found in the file COPYING.
13 * Full author contact details are available in file CREDITS
23 Graph() : numedges_(0) {};
25 typedef std::vector
<int> EdgePath
;
27 std::vector
<int> const
28 getReachableTo(int, bool clear_visited
);
30 std::vector
<int> const
31 getReachable(int, bool only_viewable
,
34 bool isReachable(int, int);
36 EdgePath
const getPath(int, int);
38 void addEdge(int s
, int t
);
44 int bfs_init(int, bool clear_visited
= true);
48 std::vector
<int> in_vertices
;
49 std::vector
<int> out_vertices
;
50 std::vector
<int> out_edges
;
54 std::vector
<Vertex
> vertices_
;
56 std::vector
<bool> visited_
;