MCPcopy Create free account
hub / github.com/BirolLab/abyss / operator()

Method operator()

SimpleGraph/SimpleGraph.cpp:311–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 ComparePathLength(const Graph& g, const ContigNode& origin)
310 : m_g(g), m_origin(origin) { }
311 bool operator()(const ContigPath& a, const ContigPath& b) const {
312 unsigned lenA = calculatePathLength(m_g, m_origin, a);
313 unsigned lenB = calculatePathLength(m_g, m_origin, b);
314 return lenA < lenB
315 || (lenA == lenB && a.size() < b.size());
316 }
317
318 typedef ContigPath first_argument_type;
319 typedef ContigPath second_argument_type;

Callers

nothing calls this directly

Calls 2

calculatePathLengthFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected