diff --git a/lemon/nauty_reader.h b/lemon/nauty_reader.h --- a/lemon/nauty_reader.h +++ b/lemon/nauty_reader.h @@ -55,8 +55,8 @@ ///\code /// int num = 0; /// SmartGraph graph; - /// while(readNauty(std::cin, graph)) { - /// PlanarityChecking pc(graph); + /// while (readNauty(graph, std::cin)) { + /// PlanarityChecking pc(graph); /// if (pc.run()) ++num; /// } /// std::cout << "Number of planar graphs: " << num << std::endl; @@ -68,7 +68,7 @@ /// ./geng -c 10 | ./num_of_pg ///\endcode template - std::istream& readNauty(std::istream& is, Graph& graph) { + std::istream& readNauty(Graph& graph, std::istream& is) { graph.clear(); std::string line;