MCPcopy Create free account
hub / github.com/BirolLab/abyss / readGraph

Function readGraph

Scaffold/drawgraph.cc:106–118  ·  view source on GitHub ↗

Read a graph from the specified file. */

Source from the content-addressed store, hash-verified

104
105/** Read a graph from the specified file. */
106static 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.

Callers 1

mainFunction · 0.70

Calls 5

assert_goodFunction · 0.85
BetterDistanceEstClass · 0.85
lockMethod · 0.80
c_strMethod · 0.45
eofMethod · 0.45

Tested by

no test coverage detected