From: An improved backward/forward sweep power flow method based on network tree depth for radial distribution systems
Step 1:
Identify all nodes and branches in the path from the connection node to the root node of the original network.
Step 2:
Reverse the parent–children relationship of the branches identified in step 1
Step 3:
Update network data