import java.io.*;

public class part2 {
    
    public BufferedReader in;
  public static void main(String args[]){
    AdjMatrix graph = new AdjMatrix(20);
    String commandLine = "";
    part2 program = new part2();
    program.in = new BufferedReader(new InputStreamReader(System.in));
    System.out.println("Enter next edge:");
    commandLine = program.getCommand();
    while(!commandLine.equalsIgnoreCase("")){  
      graph.addEntry(commandLine);
      System.out.println("Enter next edge:");
      commandLine = program.getCommand();
    }
    System.out.println(graph.toString());
  }
  
  //*                   getCommand
  //*--------------------------------------------------------------
  public String getCommand() {
    System.out.print("> ");
    String command = "";
    try {
      command = in.readLine();
    } catch (IOException e) {
      e.printStackTrace();
    }
    System.out.println("Got command: "+command);
    return command;
  }

  
}
