# HG changeset patch
# User Balazs Dezso <deba@inf.elte.hu>
# Date 1225290574 -3600
# Node ID c6c6e1d863c4594c319451f9984ecad3cf417e8a
# Parent 2ef43a5d1e49c6c84f4d4833f255e1d15775a6ac
Swap parameters in readNauty()
diff -r 2ef43a5d1e49 -r c6c6e1d863c4 lemon/nauty_reader.h
a
|
b
|
|
55 | 55 | ///\code |
56 | 56 | /// int num = 0; |
57 | 57 | /// SmartGraph graph; |
58 | | /// while(readNauty(std::cin, graph)) { |
59 | | /// PlanarityChecking<SmartUGraph> pc(graph); |
| 58 | /// while (readNauty(graph, std::cin)) { |
| 59 | /// PlanarityChecking<SmartGraph> pc(graph); |
60 | 60 | /// if (pc.run()) ++num; |
61 | 61 | /// } |
62 | 62 | /// std::cout << "Number of planar graphs: " << num << std::endl; |
… |
… |
|
68 | 68 | /// ./geng -c 10 | ./num_of_pg |
69 | 69 | ///\endcode |
70 | 70 | template <typename Graph> |
71 | | std::istream& readNauty(std::istream& is, Graph& graph) { |
| 71 | std::istream& readNauty(Graph& graph, std::istream& is) { |
72 | 72 | graph.clear(); |
73 | 73 | |
74 | 74 | std::string line; |