// AdjLists to AdjMatrix - mjd@cs.auckland.ac.nz import java.io.*; import graphs.*; public class lists2matrix { public static void main(String argv[]) { try { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); GraphAdjLists G; do { G = new GraphAdjLists(input); System.out.print(G.toStringAdjMatrix()); } while(G.order() > 0); } catch ( Exception e ) { System.err.println("Exception: "+e); } } } // lists2matrix