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

Function getDistance

SimpleGraph/SimpleGraph.cpp:279–286  ·  view source on GitHub ↗

Return the distance from vertex u to v. */

Source from the content-addressed store, hash-verified

277
278/** Return the distance from vertex u to v. */
279static int getDistance(const Graph& g,
280 vertex_descriptor u, vertex_descriptor v)
281{
282 typedef graph_traits<Graph>::edge_descriptor edge_descriptor;
283 pair<edge_descriptor, bool> e = edge(u, v, g);
284 assert(e.second);
285 return g[e.first].distance;
286}
287
288/** Return the length of the specified path in k-mer. */
289static unsigned calculatePathLength(const Graph& g,

Callers 3

calculatePathLengthFunction · 0.70
constructAmbiguousPathFunction · 0.70
makeDistanceMapFunction · 0.70

Calls 1

edgeFunction · 0.50

Tested by

no test coverage detected