diff options
| author | ruki <[email protected]> | 2025-03-22 00:36:14 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-04-08 15:31:54 +0800 |
| commit | f1a16a647593691302154af0ff592a9cdf9cda5e (patch) | |
| tree | 864b3643d723da09128ed13d4cba4981a463812c /tests/modules/graph/test.lua | |
| parent | 33a96371dac5d18e489db6b6a69a55a61b2de9d2 (diff) | |
fix remove node
Diffstat (limited to 'tests/modules/graph/test.lua')
| -rw-r--r-- | tests/modules/graph/test.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/modules/graph/test.lua b/tests/modules/graph/test.lua index c9584a69a..1fb0bcb43 100644 --- a/tests/modules/graph/test.lua +++ b/tests/modules/graph/test.lua @@ -50,6 +50,9 @@ function test_paritail_topo_sort(t) break end table.insert(order_vertices, node) + if node then + dag:partial_topo_sort_remove(node) + end end return order_vertices, has_cycle |
