@Test public void randomTest() { int V = 4; for (int i = 0; i < 150; i++) { if (i % 10 == 9) V++; List<Vertex> vertices = buildRandom(V); int expect = bruteForce(vertices); Set<Vertex> ans = new HashSet<>(); assertEquals(expect, MaxWeightClosure.solve(vertices, ans)); assertEquals(expect, check(ans, vertices)); System.out.println(ans); } }
public static int solve(List<Vertex> vertices, Set<Vertex> ans) { return 0; }
MaxWeightClosure { public static int solve(List<Vertex> vertices, Set<Vertex> ans) { return 0; } }
MaxWeightClosure { public static int solve(List<Vertex> vertices, Set<Vertex> ans) { return 0; }  }
MaxWeightClosure { public static int solve(List<Vertex> vertices, Set<Vertex> ans) { return 0; }  static int solve(List<Vertex> vertices, Set<Vertex> ans); }
MaxWeightClosure { public static int solve(List<Vertex> vertices, Set<Vertex> ans) { return 0; }  static int solve(List<Vertex> vertices, Set<Vertex> ans);  }