lemon/topology.h
changeset 2099 eb126f29038c
parent 2038 33db14058543
child 2111 ea1fa1bc3f6d
equal deleted inserted replaced
16:0014d4929675 17:d041b8322f02
   243   ///
   243   ///
   244   /// \note By definition, the empty graph is strongly connected.
   244   /// \note By definition, the empty graph is strongly connected.
   245   template <typename Graph>
   245   template <typename Graph>
   246   bool stronglyConnected(const Graph& graph) {
   246   bool stronglyConnected(const Graph& graph) {
   247     checkConcept<concept::StaticGraph, Graph>();
   247     checkConcept<concept::StaticGraph, Graph>();
   248     if (NodeIt(graph) == INVALID) return true;
       
   249 
   248 
   250     typedef typename Graph::Node Node;
   249     typedef typename Graph::Node Node;
   251     typedef typename Graph::NodeIt NodeIt;
   250     typedef typename Graph::NodeIt NodeIt;
       
   251 
       
   252     if (NodeIt(graph) == INVALID) return true;
   252 
   253 
   253     using namespace _topology_bits;
   254     using namespace _topology_bits;
   254 
   255 
   255     typedef DfsVisitor<Graph> Visitor;
   256     typedef DfsVisitor<Graph> Visitor;
   256     Visitor visitor;
   257     Visitor visitor;