Construct the set with all positions in this graph corresponding to the specified * TxGraph::Refs. All of them must occur in this graph and not be removed. */
| 232 | /** Construct the set with all positions in this graph corresponding to the specified |
| 233 | * TxGraph::Refs. All of them must occur in this graph and not be removed. */ |
| 234 | SetType MakeSet(std::span<TxGraph::Ref* const> arg) |
| 235 | { |
| 236 | SetType ret; |
| 237 | for (TxGraph::Ref* ptr : arg) { |
| 238 | auto pos = Find(ptr); |
| 239 | assert(pos != Pos(-1)); |
| 240 | ret.Set(pos); |
| 241 | } |
| 242 | return ret; |
| 243 | } |
| 244 | |
| 245 | /** Get the set of ancestors (desc=false) or descendants (desc=true) in this graph. */ |
| 246 | SetType GetAncDesc(TxGraph::Ref* arg, bool desc) |
no test coverage detected