Reconstruction to connectivity matrix