Every railroad corporation existing in this state, and having authority to operate and maintain a railroad in this state, has the power to consolidate with any other railroad corporation whose road connects with or intersects the road of such existing corporation, or any branch of such road.