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

Function printDistanceMap

SimpleGraph/SimpleGraph.cpp:445–454  ·  view source on GitHub ↗

Print a distance map. */

Source from the content-addressed store, hash-verified

443
444/** Print a distance map. */
445static void printDistanceMap(ostream& out, const Graph& g,
446 const ContigNode& u, const ContigPath& path)
447{
448 typedef map<ContigNode, int> DistanceMap;
449 DistanceMap distanceMap = makeDistanceMap(g, u, path);
450 for (DistanceMap::const_iterator it = distanceMap.begin();
451 it != distanceMap.end(); ++it)
452 out << get(edge_name, g, make_pair(u, it->first))
453 << " [d=" << it->second << "]\n";
454}
455
456typedef std::vector<std::pair<ContigNode, DistanceEst> > Estimates;
457

Callers 1

handleEstimateFunction · 0.85

Calls 4

makeDistanceMapFunction · 0.85
getFunction · 0.50
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected