ng_depth: rename calcDepth functions, return vec

This commit is contained in:
Justin Viiret
2017-05-01 14:57:05 +10:00
committed by Matthew Barr
parent 15c8a7bd98
commit dfe1b8a2af
14 changed files with 65 additions and 76 deletions

View File

@@ -198,8 +198,7 @@ static
bool pruneOverlong(NGHolder &g, const depth &max_depth,
const ReportManager &rm) {
bool modified = false;
std::vector<NFAVertexDepth> depths;
calcDepths(g, depths);
auto depths = calcDepths(g);
for (auto v : vertices_range(g)) {
if (is_special(v, g)) {