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

Function getDistance

MergePaths/PathConsensus.cpp:205–213  ·  view source on GitHub ↗

Return the distance from vertex u to v. */

Source from the content-addressed store, hash-verified

203
204/** Return the distance from vertex u to v. */
205static int getDistance(const Graph& g,
206 graph_traits<Graph>::vertex_descriptor u,
207 graph_traits<Graph>::vertex_descriptor v)
208{
209 typedef graph_traits<Graph>::edge_descriptor E;
210 pair<E, bool> e = edge(u, v, g);
211 assert(e.second);
212 return g[e.first].distance;
213}
214
215/** Read contig paths from the specified file.
216 * @param[in] inPath the filename of the contig paths

Callers 1

outputNewContigFunction · 0.70

Calls 1

edgeFunction · 0.50

Tested by

no test coverage detected