initial_edges function

Identify the initial edges of the river corridor