Method for automatically maintaining topological relation of power grid

The invention discloses a method for automatically maintaining the topological relation of a power grid. The method particularly includes the following steps of maintenance when a new power grid device is added, electronization transfer form maintenance and line maintenance, wherein the maintenance when the new power grid device is added relates to the steps that basic information of operating personnel is maintained into attribute information of the device when the new power grid device is added, and if the new device is added to a feeder line or a transformer, only transformer information in attribute information of the feeder line needs to be maintained; the electronization transfer form maintenance relates to the step of maintaining the relationship between a meter box and a customer in a GIS version corresponding to electronization transfer forms through the electronization transfer forms; the line maintenance relates to the step that the GIS platform automatically modifies attributes of all devices under the line and automatically maintains the topological relation of the power grid. According to the method, the topological relation of the power grid is automatically maintained, and when the topological relation which affects device status changes, the topological relation of the devices can be automatically maintained, a data support is provided for forming an electric contact diagram and advanced application of the power grid, risks of the personnel for conducting manual maintenance are reduced, and quality for maintaining the operating state of the electrical device is improved.