Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GeoDaCenter/geoda
/ MakeSet
Method
MakeSet
Algorithms/redcap.cpp:187–195 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
185
}
186
187
Node* DisjoinSet::MakeSet(int id)
188
{
189
Node* node = new Node(id);
190
node->parent = node;
191
node->rank = 0;
192
map[id] = node;
193
194
return node;
195
}
196
197
void DisjoinSet::Union(Node* n1, Node* n2)
198
{
Callers
1
init
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected