Historical changes in the functional connectivity of rivers based on spatial network analysis and the past occurrences of diadromous species in Portugal