A computer implemented method for automatic correction of a topology of an electrical distribution network defined by respective allocations of meters to transformers, the method comprising the steps of: (i) for each transformer of the topology, dividing up the meters allocated to the transformer into first and second batches according to a dividing criteria and a degree of similarity of the records of voltages measured by the meters with respect to an average voltage estimated with the records of voltages measured by the meters allocated to the transformer so that the first batch comprises the meters whose degree of similarity is higher than the meters of the second batch; and characterized in that: (ii) initially for each transformer of the topology then subsequently for each transformer whose allocation of meters has changed, calculating a corrected average voltage with the records of voltages measured by the meters only in the first batch of the transformer; (iii) calculating a similarity of the records of voltages measured by the meters in the second batches of the transformers with the corrected average voltages of the transformers calculated in (ii); (iv) for each transformer of the topology, determining which are, in the second batch, the meters attributable to another transformer according to the similarities calculated in (iii); (v) reallocating at least one of the meters determined in (iv); and (vi) as long as a meter has been reallocated in (v), repeating steps (ii) to (v), the topology being corrected when there remain no more meters attributable to other transformers in the second batches. (i) for each transformer of the topology, dividing up the meters allocated to the transformer into first and second batches according to a dividing criteria and a degree of similarity of the records of voltages measured by the meters with respect to an average voltage estimated with the records of voltages measured by the meters allocated to the transformer so that the first batch comprises the meters whose degree of similarity is higher than the meters of the second batch; and characterized in that: (ii) initially for each transformer of the topology then subsequently for each transformer whose allocation of meters has changed, calculating a corrected average voltage with the records of voltages measured by the meters only in the first batch of the transformer; (iii) calculating a similarity of the records of voltages measured by the meters in the second batches of the transformers with the corrected average voltages of the transformers calculated in (ii); (iv) for each transformer of the topology, determining which are, in the second batch, the meters attributable to another transformer according to the similarities calculated in (iii); (v) reallocating at least one of the meters determined in (iv); and (vi) as long as a meter has been reallocated in (v), repeating steps (ii) to (v), the topology being corrected when there remain no more meters attributable to other transformers in the second batches. (ii) initially for each transformer of the topology then subsequently for each transformer whose allocation of meters has changed, calculating a corrected average voltage with the records of voltages measured by the meters only in the first batch of the transformer; (iii) calculating a similarity of the records of voltages measured by the meters in the second batches of the transformers with the corrected average voltages of the transformers calculated in (ii); (iv) for each transformer of the topology, determining which are, in the second batch, the meters attributable to another transformer according to the similarities calculated in (iii); (v) reallocating at least one of the meters determined in (iv); and (vi) as long as a meter has been reallocated in (v), repeating steps (ii) to (v),