Any railroad corporation, whose line is located wholly or partly in the state, may adopt such gauge or gauges as its authorities may choose, and may alter the same at pleasure.