Skip to content

Improve vertex ID logic to reuse highest-numbered ID#27

Open
moody-jazz wants to merge 1 commit into
mrpandey:masterfrom
moody-jazz:master
Open

Improve vertex ID logic to reuse highest-numbered ID#27
moody-jazz wants to merge 1 commit into
mrpandey:masterfrom
moody-jazz:master

Conversation

@moody-jazz

Copy link
Copy Markdown

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