Swap parameters in readNauty()
authorBalazs Dezso <deba@inf.elte.hu>
Wed, 29 Oct 2008 15:29:34 +0100
changeset 362c6c6e1d863c4
parent 361 2ef43a5d1e49
child 363 91e68d590e61
child 368 99f1bdf8f7db
Swap parameters in readNauty()
lemon/nauty_reader.h
     1.1 --- a/lemon/nauty_reader.h	Wed Oct 29 14:06:08 2008 +0000
     1.2 +++ b/lemon/nauty_reader.h	Wed Oct 29 15:29:34 2008 +0100
     1.3 @@ -55,8 +55,8 @@
     1.4    ///\code
     1.5    /// int num = 0;
     1.6    /// SmartGraph graph;
     1.7 -  /// while(readNauty(std::cin, graph)) {
     1.8 -  ///   PlanarityChecking<SmartUGraph> pc(graph);
     1.9 +  /// while (readNauty(graph, std::cin)) {
    1.10 +  ///   PlanarityChecking<SmartGraph> pc(graph);
    1.11    ///   if (pc.run()) ++num;
    1.12    /// }
    1.13    /// std::cout << "Number of planar graphs: " << num << std::endl;
    1.14 @@ -68,7 +68,7 @@
    1.15    /// ./geng -c 10 | ./num_of_pg
    1.16    ///\endcode
    1.17    template <typename Graph>
    1.18 -  std::istream& readNauty(std::istream& is, Graph& graph) {
    1.19 +  std::istream& readNauty(Graph& graph, std::istream& is) {
    1.20      graph.clear();
    1.21  
    1.22      std::string line;