Skip to content

Conversation

moody-jazz
Copy link

updated the logic for assigning new vertex IDs in Chapter: Vertices and Edges.
Currently, when the highest-numbered vertex is removed, the next added vertex receives a new incremented ID, leaving gaps in numbering.
This change ensures that if the highest-numbered vertex is removed, its ID is reused for the next vertex added.

Closes #26

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.

[Chapter: Vertices and Edges] Improve vertex ID logic to reuse highest-numbered ID
1 participant