# HG changeset patch # User Balazs Dezso # Date 2008-10-29 15:29:34 # Node ID c6c6e1d863c4594c319451f9984ecad3cf417e8a # Parent 2ef43a5d1e49c6c84f4d4833f255e1d15775a6ac Swap parameters in readNauty() 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;