| 66 | } |
| 67 | |
| 68 | void trace_vertex_chains(const IndexHash& valance, IndexHash& next, |
| 69 | std::vector<VectorI>& chains) { |
| 70 | for (auto target_valance : {1, 2}) { |
| 71 | for (auto item : valance) { |
| 72 | if (next.find(item.first) == next.end()) continue; |
| 73 | if (item.second == target_valance) { |
| 74 | chains.push_back(trace(next, item.first)); |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | void assert_simple_edge_chains( |
| 81 | const std::unordered_map<size_t, size_t>& valance) { |
no test coverage detected