Computing connectivity PSD