Generally BFS algorithm is used for maintaining radial nature of distribution system when network reconfiguration or service restoration is applied to the system but how to implement this algorithm to the system ?
I would like to suggest you to take a look in the articles in the links below. The second one proposes a data structure that did not require any verification of the radiality. The first one is the first articles that applied this data structure in problems that involve