Skip to content

Fix RuntimeError when using multiple hash splat operators#343

Closed
sinsoku wants to merge 1 commit intoruby:masterfrom
sinsoku:fix-hash-with-splat-operator
Closed

Fix RuntimeError when using multiple hash splat operators#343
sinsoku wants to merge 1 commit intoruby:masterfrom
sinsoku:fix-hash-with-splat-operator

Conversation

@sinsoku
Copy link
Contributor

@sinsoku sinsoku commented Oct 12, 2025

When multiple hash splat operators expand hashes of the same type,
duplicate edges were being added to the same vertex, causing Set#<<
to raise an error. Modified Vertex#add_edge and Vertex#remove_edge
to handle duplicate edges gracefully.

When multiple hash splat operators expand hashes of the same type,
duplicate edges were being added to the same vertex, causing `Set#<<`
to raise an error. Modified `Vertex#add_edge` and `Vertex#remove_edge`
to handle duplicate edges gracefully.
@mame
Copy link
Member

mame commented Oct 31, 2025

Thank you! I would like to avoid modifying Vertex#add_edge here, so I created another PR #344 with your scenario file.

By the way, I am going to cut a release 0.31.0 next Tuesday. Let me know if you want to include any change for the release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants