The multichannel recordings of signals of many cells cultivated on a multielectrode array (MEA) impose some challenging problems. A meanwhile classic problem is the separation of the recordings of a single electrode into classes of recordings where each class is caused by a single cell. This is the well-known spike sorting. A "dual" problem is the determination of the set of electrodes that record signals of a single cell. This set is called the neighborhood of the cell and has often more than one element if the MEA has a large number of electrodes with high density. A method for the reconstruction of the neighborhoods from the multichannel recordings is presented. Special effort is directed to a precise peak detection. For the evaluation of the algorithm, artificial data, obtained from an appropriate model of MEA recordings, are used. Because the artificial data provide a ground truth, an evaluation of the accuracy of the algorithm is possible. The algorithm works well for realistic parameters.