Uncertainty quantification in complex networks with applications to brain connectomics