Python translation of Betzel et al.'s distance dependent thresholding.
For details, see:
Betzel, R. F., Griffa, A., Hagmann, P., & Mišić, B. (2018). Distance-dependent consensus thresholds for generating group-representative structural brain networks. Network Neuroscience, 1-22. Link to paper MATLAB code