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

@@ -603,9 +603,7 @@ private:
// check if we will edit our way into a vacuous pattern
static
bool will_turn_vacuous(const NGHolder &g, u32 edit_distance) {
vector<NFAVertexRevDepth> depths;
calcDepths(g, depths);
auto depths = calcRevDepths(g);
depth min_depth = depth::infinity();
auto idx = g[g.start].index;