See [the PowerModels implementation of `simplify_network!`](https://github.com/lanl-ansi/PowerModels.jl/blob/7b62b502d3502c1361ff61c9f88572d9f5b7c3af/src/core/data.jl#L2490-L2503) as a reference.
See the PowerModels implementation of
simplify_network!as a reference.