Author: rgheck
Date: Wed Jan 19 15:29:46 2011
New Revision: 37261
URL: http://www.lyx.org/trac/changeset/37261
Log:
Use the typedef.
Modified:
lyx-devel/trunk/src/Graph.cpp
lyx-devel/trunk/src/Graph.h
Modified: lyx-devel/trunk/src/Graph.cpp
==============================================================================
--- lyx-devel/trunk/src/Graph.cpp Wed Jan 19 15:09:44 2011 (r37260)
+++ lyx-devel/trunk/src/Graph.cpp Wed Jan 19 15:29:46 2011 (r37261)
@@ -46,10 +46,10 @@
}
-vector<int> const
+Graph::EdgePath const
Graph::getReachableTo(int target, bool clear_visited)
{
- vector<int> result;
+ EdgePath result;
queue<int> Q;
if (!bfs_init(target, clear_visited, Q))
return result;
@@ -81,11 +81,11 @@
}
-vector<int> const
+Graph::EdgePath const
Graph::getReachable(int from, bool only_viewable,
bool clear_visited)
{
- vector<int> result;
+ EdgePath result;
queue<int> Q;
if (!bfs_init(from, clear_visited, Q))
return result;
Modified: lyx-devel/trunk/src/Graph.h
==============================================================================
--- lyx-devel/trunk/src/Graph.h Wed Jan 19 15:09:44 2011 (r37260)
+++ lyx-devel/trunk/src/Graph.h Wed Jan 19 15:29:46 2011 (r37261)
@@ -30,9 +30,9 @@
///
typedef std::vector<int> EdgePath;
/// \return a vector of the vertices from which "to" can be reached
- std::vector<int> const getReachableTo(int to, bool clear_visited);
+ EdgePath const getReachableTo(int to, bool clear_visited);
/// \return a vector of the vertices that can be reached from "from"
- std::vector<int> const
+ EdgePath const
getReachable(int from, bool only_viewable, bool clear_visited);
/// can "from" be reached from "to"?
bool isReachable(int from, int to);