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

Function readGraph

Graph/gc.cc:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52/** Read a graph from the specified file. */
53template <typename Graph, typename BetterEP>
54static void readGraph(const string& path, Graph& g, BetterEP betterEP)
55{
56 if (opt::verbose > 0)
57 cout << "Reading `" << path << "'...\n";
58 ifstream fin(path.c_str());
59 istream& in = path == "-" ? cin : fin;
60 assert_good(in, path);
61 read_graph(in, g, betterEP);
62 assert(in.eof());
63 printGraphStats(cout, g);
64 g_contigNames.lock();
65}
66
67/** Read a graph from the specified files. */
68template <typename Graph, typename It, typename BetterEP>

Callers 1

readGraphsFunction · 0.70

Calls 4

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

Tested by

no test coverage detected