MCPcopy 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
187Node* 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
197void DisjoinSet::Union(Node* n1, Node* n2)
198{

Callers 1

initMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected