We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca64bab commit 47e8fabCopy full SHA for 47e8fab
yaramo/operations/split.py
@@ -75,6 +75,11 @@ def _add_elements_to_topology(
75
76
Split._validate_for_data_loss(topology, topology_a, topology_b, split_edges)
77
78
+ # Ensure first element of new end nodes is always in A-topology
79
+ for edge, new_end_node_pair in new_end_nodes.items():
80
+ if node_labels[new_end_node_pair[0]] == Label.B_Topology:
81
+ new_end_nodes[edge] = (new_end_node_pair[1], new_end_node_pair[0])
82
+
83
return topology_a, topology_b, new_end_nodes
84
85
@staticmethod
0 commit comments