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 }}
Repository navigation
Commit 74a87c7
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: vertex kinds supply _detach, the twin of _attach; removed vertices leave the graph
remove_edge knew how each vertex kind held an edge (a per-endpoint
'is it in this list?' check written for the directed case). That is now the
vertex kind's job: UVertex._detach removes the edge from both ends (twice for
a self-loop) and DVertex._detach from the source. remove_edge calls it once,
before clearing the edge's endpoints. Behaviour is unchanged.
Also fixes remove_vertex leaving vertex._graph pointing at the graph it had
been removed from, which made a later connect() report 'different graphs'
rather than 'not in a graph', and made vertex.remove() fail confusingly.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
0 commit comments