Automatic Structure and Graphs of Groups