Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package sp1;
- import edu.princeton.cs.algs4.EdgeWeightedGraph;
- import edu.princeton.cs.algs4.In;
- import edu.princeton.cs.algs4.KruskalMST;
- public class MinnstaSpann {
- public static void main(String[] args) {
- System.out.println("Þyngd: " + (new KruskalMST(new EdgeWeightedGraph(new In("tinyEWG.txt")))).weight());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement