MCPcopy Create free account
hub / github.com/PDAL/PDAL / unite

Method unite

filters/private/DisjointSet.cpp:65–73  ·  view source on GitHub ↗

Merge y into x

Source from the content-addressed store, hash-verified

63
64// Merge y into x
65void DisjointSet::unite(PointId x, PointId y)
66{
67 x = this->find(x);
68 y = this->find(y);
69 // Check if elements are part of the same tree
70 if (x == y)
71 return;
72 m_parent[y] = x;
73}
74
75} // namespace pdal

Callers 1

filterMethod · 0.80

Calls 1

findMethod · 0.95

Tested by

no test coverage detected