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

Function extend

Graph/ContigGraphAlgorithms.h:101–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 */
100template<typename Graph, typename OutIt>
101OutIt
102extend(const Graph& g, typename Graph::vertex_descriptor u, OutIt out)
103{
104 typedef typename graph_traits<Graph>::vertex_descriptor vertex_descriptor;
105 std::set<vertex_descriptor> seen;
106 while (out_degree(u, g) == 1 && seen.insert(u).second) {
107 u = *adjacent_vertices(u, g).first;
108 *out++ = u;
109 }
110 return out;
111}
112
113/** Assemble an unambiguous path starting at vertex u.
114 * Every edge must satisfy the predicate. */

Callers 2

extendJunctionFunction · 0.85
handleEstimateFunction · 0.85

Calls 3

out_degreeFunction · 0.70
adjacent_verticesFunction · 0.70
insertMethod · 0.45

Tested by

no test coverage detected