Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package apps;
- import java.io.IOException;
- import java.util.ArrayList;
- import java.util.Iterator;
- import java.util.Scanner;
- import structures.Graph;
- import structures.Vertex;
- public class MSTDriver {
- public static void main(String[] args) throws IOException
- {
- Scanner sc = new Scanner(System.in);
- System.out.print("Enter file name:");
- String file = sc.nextLine();
- Graph graph = new Graph(file);
- for (Vertex v : graph.vertices) {
- System.out.println(v.name);
- }
- PartialTreeList ptl = MST.initialize(graph);
- ArrayList<PartialTree.Arc> a = MST.execute(ptl);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement