GraphStringParser passes test, created the Trains class which houses
main()