Read a graph from the specified file. */
| 134 | |
| 135 | /** Read a graph from the specified file. */ |
| 136 | static void readGraph(const string& path, Graph& g) |
| 137 | { |
| 138 | if (opt::verbose > 0) |
| 139 | cerr << "Reading `" << path << "'...\n"; |
| 140 | ifstream fin(path.c_str()); |
| 141 | istream& in = path == "-" ? cin : fin; |
| 142 | assert_good(in, path); |
| 143 | read_graph(in, g, AllowParallelEdges()); |
| 144 | assert(in.eof()); |
| 145 | if (opt::verbose > 1) |
| 146 | printGraphStats(cerr, g); |
| 147 | g_contigNames.lock(); |
| 148 | } |
| 149 | |
| 150 | int main(int argc, char** argv) |
| 151 | { |
no test coverage detected