Skip to content

Commit a36964e

Browse files
Use new tmp_remove_nodes
Use tmp_remove_nodes instead of the old substation_nodes argument Signed-off-by: Vincent Koppen <[email protected]>
1 parent f6c543a commit a36964e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/model_interface.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,8 @@
265265
"outputs": [],
266266
"source": [
267267
"all_paths = grid.graphs.active_graph.get_all_paths(56, 41)\n",
268-
"components = grid.graphs.active_graph.get_components()\n",
268+
"with grid.graphs.active_graph.tmp_remove_nodes([1, 2, 3]):\n",
269+
" components = grid.graphs.active_graph.get_components()\n",
269270
"connected = grid.graphs.active_graph.get_connected(node_id=56)"
270271
]
271272
}

0 commit comments

Comments
 (0)