will try to apply spanning tree to the circuit direction finding.