# HG changeset patch # User Balazs Dezso # Date 1225290574 -3600 # Node ID c6c6e1d863c4594c319451f9984ecad3cf417e8a # Parent 2ef43a5d1e49c6c84f4d4833f255e1d15775a6ac Swap parameters in readNauty() diff -r 2ef43a5d1e49 -r c6c6e1d863c4 lemon/nauty_reader.h --- a/lemon/nauty_reader.h Wed Oct 29 14:06:08 2008 +0000 +++ b/lemon/nauty_reader.h Wed Oct 29 15:29:34 2008 +0100 @@ -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;