Read a graph from the specified file. */
| 104 | |
| 105 | /** Read a graph from the specified file. */ |
| 106 | static void readGraph(const string& path, Graph& g) |
| 107 | { |
| 108 | if (opt::verbose > 0) |
| 109 | cerr << "Reading `" << path << "'...\n"; |
| 110 | ifstream fin(path.c_str()); |
| 111 | istream& in = path == "-" ? cin : fin; |
| 112 | assert_good(in, path); |
| 113 | read_graph(in, g, BetterDistanceEst()); |
| 114 | assert(in.eof()); |
| 115 | if (opt::verbose > 0) |
| 116 | printGraphStats(cerr, g); |
| 117 | g_contigNames.lock(); |
| 118 | } |
| 119 | |
| 120 | /** Solve Ax = b for x using Cholesky decomposition. |
| 121 | * The matrix A is symmetric and positive-definite. |
no test coverage detected