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

Method find

filters/private/DisjointSet.cpp:53–62  ·  view source on GitHub ↗

Find function with path-splitting optimisation

Source from the content-addressed store, hash-verified

51
52// Find function with path-splitting optimisation
53PointId DisjointSet::find(PointId x)
54{
55 PointId tmp = x;
56 while (tmp != m_parent[x])
57 {
58 tmp = m_parent[x];
59 m_parent[x] = m_parent[m_parent[x]];
60 }
61 return tmp;
62}
63
64// Merge y into x
65void DisjointSet::unite(PointId x, PointId y)

Callers 15

uniteMethod · 0.95
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
run_pipelineFunction · 0.45
run_bad_pipelineFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
testFunction · 0.45
TESTFunction · 0.45

Calls

no outgoing calls

Tested by 15

TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
run_pipelineFunction · 0.36
run_bad_pipelineFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36
testFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36