Simultaneous estimation of connectivity and dimensionality in samples of networks