| 49 | TVector<TDistrTree> Group; |
| 50 | |
| 51 | int GetParent(int id) { |
| 52 | int res = id, parent = id; |
| 53 | while (parent != -1) { |
| 54 | res = parent; |
| 55 | parent = Group2parent[res]; |
| 56 | if (parent == res) { |
| 57 | Y_ASSERT(id == res); |
| 58 | break; |
| 59 | } |
| 60 | } |
| 61 | Group2parent[id] = res; |
| 62 | return res; |
| 63 | } |
| 64 | TDistrTreeConstructor(int nodeCount) { |
| 65 | // TVector<TTreeConnectorCost> usedLinks; |
| 66 | Group2parent.resize(nodeCount, -1); |
no outgoing calls
no test coverage detected