The Barrier Highway which links Adelaide and Broken Hill in western New South Wales has reopened after heavy rain caused significant flooding.