You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.
The documentation says node labels (indices) are lost when a node is removed from the graph.
Perhaps it might be helpful to have an option to preserve it?
The text was updated successfully, but these errors were encountered:
rachithaiyappa
changed the title
Request to preserve vertex labels when deleting a vertex.
Preserve vertex labels when deleting a vertex.
Aug 25, 2021
rachithaiyappa
changed the title
Preserve vertex labels when deleting a vertex.
Preserve vertex labels after deleting a vertex.
Aug 25, 2021
The internal structure of the SimpleGraph maintains the vertices to a compact range starting from 1. This is part of the API contract of a SimpleGraph, and some algorithms may use this property. So we can't change it as we would not know which algorithms would break.
https://github.com/JuliaGraphs/LightGraphs.jl/blob/ddaf3d37aed00b2b22705376bd79fba2c4bb6363/src/SimpleGraphs/SimpleGraphs.jl#L124-L153
The documentation says node labels (indices) are lost when a node is removed from the graph.
Perhaps it might be helpful to have an option to preserve it?
The text was updated successfully, but these errors were encountered: