MCPcopy Create free account
hub / github.com/ShahjalalShohag/code-library / component_size

Method component_size

Data Structures/Link Cut Tree.cpp:158–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 return get_parent(u) == 0;
157 }
158 int component_size(int u) {
159 return t[find_root(u)].ssz;
160 }
161 int subtree_size(int u) {
162 int p = get_parent(u);
163 if (p == 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected