Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Seogeurim/CS-study
/ setRoot
Method
setRoot
contents/algorithm/code/KruskalTest.java:36–39 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
34
}
35
36
private
void
setRoot() {
37
root =
new
int
[V+1];
38
for
(
int
i = 1; i <= V; i++) root[i] = i;
39
}
40
41
public
int
getMSTCost() {
42
int
cost = 0;
Callers
1
setV
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected