MCPcopy Create free account
hub / github.com/Seogeurim/CS-study / main

Method main

contents/algorithm/code/KruskalTest.java:5–14  ·  view source on GitHub ↗
(String[] args)

Source from the content-addressed store, hash-verified

3public class KruskalTest {
4
5 public static void main(String[] args) {
6 Kruskal kruskal = new Kruskal();
7
8 kruskal.setV(3);
9 kruskal.setEdges(1, 2, 1);
10 kruskal.setEdges(2, 3, 2);
11 kruskal.setEdges(1, 3, 3);
12
13 System.out.println(kruskal.getMSTCost());
14 }
15}
16
17class Kruskal {

Callers

nothing calls this directly

Calls 3

setVMethod · 0.95
setEdgesMethod · 0.95
getMSTCostMethod · 0.95

Tested by

no test coverage detected