Uncovering the complete biodiversity structure in spatial networks: the example of riverine systems