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

Function readGraph

Scaffold/junction.cc:136–148  ·  view source on GitHub ↗

Read a graph from the specified file. */

Source from the content-addressed store, hash-verified

134
135/** Read a graph from the specified file. */
136static 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
150int main(int argc, char** argv)
151{

Callers 1

mainFunction · 0.70

Calls 5

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

Tested by

no test coverage detected