Fix two bugs: yen k=0 underflow, DfsReachable stack overflow#757
Fix two bugs: yen k=0 underflow, DfsReachable stack overflow#757samueltardieu merged 1 commit intomainfrom
Conversation
acf8c76 to
2a85f9a
Compare
📊 iai-callgrind Benchmark Results➡️ 20 Unchanged (within ±0.1%)Click to expand
✅ All benchmarks unchangediai-callgrind measures instructions executed, which is deterministic and not affected by system load. |
2a85f9a to
a3ed5ef
Compare
|
@copilot There are Clippy warnings. |
Head branch was pushed to by a user without write access
ed318a7 to
099590a
Compare
|
@copilot Whether a grid is sparse or dense, when iterated over it must return the list of its vertices. Can you add more tests to ensure that this is indeed the case? |
Added three new tests in f4ea467:
|
|
@copilot Why do you insist on having the iterator return the insertion order? It is not guaranteed by the documentation, right? Also, is there really a reason to have |
You're right on both counts. Fixed in 2ff7917: removed the |
|
@copilot Is the change you made in the grid code still necessary, or beneficial? If not, remove it, or adapt it to be more efficient or correct. Also, ensure that tests, clippy, fmt, etc. pass, as documented. |
The grid code change was not necessary — the original |
Co-authored-by: samueltardieu <44656+samueltardieu@users.noreply.github.com>
33a289d to
0beea72
Compare
yen()panic whenk == 0DfsReachable::next()stack overflow on dense graphsdoc_markdownwarnings: add backticks arounditer()andinto_iter()in test doc comment💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.