]> git.lyx.org Git - lyx.git/blobdiff - src/Graph.cpp
use return value of regex_match to check whether a match was found
[lyx.git] / src / Graph.cpp
index 09db31e5f24e4d62c784e515076bf1c13ab0a632..d7ea066dc36e6daa7bc76fa5a2de54d9b8cfe51c 100644 (file)
@@ -46,10 +46,10 @@ bool Graph::bfs_init(int s, bool clear_visited, queue<int> & Q)
 }
 
 
-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
 }
 
 
-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;