calculateconnections function

Calculate the Connectivity Matrix for a River Network