@@ -307,8 +307,6 @@ inline auto get_edge_weights(TransformerGraph const& graph) -> TrafoGraphEdgePro
307
307
if (graph[e].regulated_idx == unregulated_idx) {
308
308
continue ;
309
309
}
310
- // control_side, two winding or three winding, is always parallel to the
311
- // source side of the transformer edge
312
310
auto const edge_src_rank = vertex_distances[boost::source (e, graph)];
313
311
auto const edge_tgt_rank = vertex_distances[boost::target (e, graph)];
314
312
auto const edge_res = std::min (edge_src_rank, edge_tgt_rank);
@@ -326,7 +324,8 @@ inline auto get_edge_weights(TransformerGraph const& graph) -> TrafoGraphEdgePro
326
324
// | C | B | [A<->B], [C->A], [C->B] |
327
325
// | C | C | [A<->B], [A->C], [A->B] |
328
326
// In two winding trafo, the edge is always pointing to the control side; in three winding trafo edges, the
329
- // edges are always pointing parallel to the control side: meaning that for delta configuration ABC, the above
327
+ // one directional edges are always pointing towards the control side or the node connected to the control
328
+ // side via the two directional edge if there exists one. For delta configuration ABC, the above
330
329
// situations can happen.
331
330
// The logic still holds in meshed grids, albeit operating a more complex graph.
332
331
if (edge_src_rank != edge_tgt_rank - 1 ) {
0 commit comments