(* * Cool program reading descriptions of weighted directed graphs * from stdin. It builds up a graph objects with a list of vertices * and a list of edges. Every vertice has a list of outgoing edges. * * INPUT FORMAT * Every line has the form vertice successor* * Where vertice is an int, and successor is vertice,weight * * An empty line or EOF terminates the input. * * The list of vertices and the edge list is printed out by the Main * class. * * TEST * Once compiled, the file g1.graph can be fed to the program. * The output should look like this: nautilus.CS.Berkeley.EDU 53# spim -file graph.s