X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FGraph.h;h=50d8bf855da73919e7ac67a5f3bdfc77f6ad2ee3;hb=89342f2946abd5d01b019a729d1f160b0c9d3d50;hp=cd0110264c30545fd2f9f5db18884c39879f08eb;hpb=1a0852630af07b5a5d71eae6f03b385b6f4431ee;p=lyx.git diff --git a/src/Graph.h b/src/Graph.h index cd0110264c..50d8bf855d 100644 --- a/src/Graph.h +++ b/src/Graph.h @@ -16,6 +16,7 @@ #include #include +#include #include @@ -31,15 +32,9 @@ public: typedef std::vector EdgePath; /// \return a vector of the vertices from which "to" can be reached EdgePath const getReachableTo(int to, bool clear_visited); - /// \return a vector of the vertices that can be reached from "from" - EdgePath const - getReachable(int from, bool only_viewable, bool clear_visited); - /// \return a vector of the reachable vertices, avoiding "exclude" - EdgePath const getReachable(int from, bool only_viewable, - bool clear_visited, int exclude); /// \return a vector of the reachable vertices, avoiding all "excludes" EdgePath const getReachable(int from, bool only_viewable, - bool clear_visited, std::vector excludes); + bool clear_visited, std::set excludes = std::set()); /// can "from" be reached from "to"? bool isReachable(int from, int to); /// find a path from "from" to "to". always returns one of the