Implemented graphs, addition of arcs, and printing.