How dikes form their paths from the source to the surface