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

Function assemble_if

Graph/ContigGraphAlgorithms.h:116–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114 * Every edge must satisfy the predicate. */
115template<typename Graph, typename OutIt, typename Predicate>
116OutIt
117assemble_if(const Graph& g, typename Graph::vertex_descriptor u, OutIt out, Predicate pred)
118{
119 typedef typename graph_traits<Graph>::edge_descriptor edge_descriptor;
120 while (contiguous_out(g, u)) {
121 edge_descriptor e = *out_edges(u, g).first;
122 if (!pred(e))
123 break;
124 *out++ = u;
125 u = target(e, g);
126 }
127 *out++ = u;
128 return out;
129}
130
131/** Remove vertices in the sequence [first, last) from the graph
132 * for which the predicate p is true. Edges incident to those vertices

Callers 3

assembleFunction · 0.85
assemble_strandedFunction · 0.85
assembleOverlappingPathsFunction · 0.85

Calls 13

contiguous_outFunction · 0.85
compose2Function · 0.85
contiguous_inFunction · 0.85
remove_vertex_ifFunction · 0.85
verticesMethod · 0.80
ambiguousMethod · 0.80
out_edgesFunction · 0.70
mergeFunction · 0.70
sizeMethod · 0.45
frontMethod · 0.45
backMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected