@@ -78,14 +78,6 @@ namespace detail
78
78
79
79
typedef typename graph_traits< Graph >::vertex_descriptor Vertex;
80
80
81
- void set_ancestor (const preds& pr) { ancestor = pr.ancestor ; }
82
-
83
- void set_ancestor (const Vertex& v) { ancestor = v; }
84
-
85
- void set_best (const Vertex& v) { best = v; }
86
-
87
- void set_semi (const Vertex& v) { semi = v; }
88
-
89
81
Vertex semi, ancestor, best;
90
82
};
91
83
@@ -162,13 +154,13 @@ namespace detail
162
154
s = s2;
163
155
}
164
156
preds< Graph >& preds_of_n = get (predsMap_, n);
165
- preds_of_n.set_semi (s) ;
157
+ preds_of_n.semi = s ;
166
158
167
159
// 2. Calculation of n's dominator is deferred until
168
160
// the path from s to n has been linked into the forest
169
161
get (bucketMap_, s).push_back (n);
170
- preds_of_n.set_ancestor (p) ;
171
- preds_of_n.set_best (n) ;
162
+ preds_of_n.ancestor = p ;
163
+ preds_of_n.best = n ;
172
164
173
165
// 3. Now that the path from p to v has been linked into
174
166
// the spanning forest, these lines calculate the dominator of v,
@@ -212,11 +204,11 @@ namespace detail
212
204
const Vertex b (ancestor_with_lowest_semi_ (a, dfnumMap));
213
205
const preds< Graph >& preds_of_b = get (predsMap_, b);
214
206
215
- preds_of_v.set_ancestor ( preds_of_a) ;
207
+ preds_of_v.ancestor = preds_of_a. ancestor ;
216
208
217
209
if (get (dfnumMap, preds_of_b.semi )
218
210
< get (dfnumMap, get (predsMap_, preds_of_v.best ).semi ))
219
- preds_of_v.set_best (b) ;
211
+ preds_of_v.best = b ;
220
212
}
221
213
222
214
return preds_of_v.best ;
0 commit comments