the merthyr, tredegar and abergavenny railway, also known as the "heads of the valleys line", was a railway line which operated between 1860 and 1958 between the monmouthshire town of abergavenny and the glamorgan town of merthyr tydfil in south east wales.