W - connectome (square matrix)
D - matrix of edge lengths (square matrix)
bins - nbins or binedges to use (positive integer | vector)