diff --git a/src/ribasim_nl/ribasim_nl/model.py b/src/ribasim_nl/ribasim_nl/model.py index 9c4a739..fe47d8b 100644 --- a/src/ribasim_nl/ribasim_nl/model.py +++ b/src/ribasim_nl/ribasim_nl/model.py @@ -754,6 +754,7 @@ def merge_basins( ) if are_connected and (to_node_type != "FlowBoundary"): + self._graph = None # set self._graph to None, so it will regenerate on currend edge-table paths = [i for i in nx.all_shortest_paths(nx.Graph(self.graph), node_id, to_node_id) if len(i) == 3] if len(paths) == 0: