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

Method DisjointSet

filters/private/DisjointSet.cpp:41–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39{
40
41DisjointSet::DisjointSet(point_count_t n)
42{
43 m_parent.resize(n);
44
45 // In the beginning each element is an individual set
46 for (unsigned int i = 0; i < n; ++i)
47 {
48 m_parent[i] = i;
49 }
50}
51
52// Find function with path-splitting optimisation
53PointId DisjointSet::find(PointId x)

Callers

nothing calls this directly

Calls 1

resizeMethod · 0.80

Tested by

no test coverage detected