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

Function remove_vertex_if

Graph/ContigGraphAlgorithms.h:136–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 */
135template<typename Graph, typename It, typename Predicate>
136void
137remove_vertex_if(Graph& g, It first, It last, Predicate p)
138{
139 for_each_if(
140 first, last, [&g](const ContigNode& c) { return g.clear_vertex(c); }, p);
141 for_each_if(
142 first, last, [&g](const ContigNode& c) { return g.remove_vertex(c); }, p);
143}
144
145/** Add the vertex and edge propeties of the path [first, last). */
146template<typename Graph, typename It, typename VP>

Callers 7

assemble_ifFunction · 0.85
pruneTips_ifFunction · 0.85
mainFunction · 0.85
removeContigs_ifFunction · 0.85
addPathOverlapEdgesFunction · 0.85
outputGraphFunction · 0.85

Calls 3

for_each_ifFunction · 0.85
clear_vertexMethod · 0.45
remove_vertexMethod · 0.45

Tested by

no test coverage detected