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 d8f7911
Browse filesBrowse the repository at this point in the historyBrowse files
They were plain attributes, so e.v1 = None on an edge that was in a graph left
it wedged: remove_edge and remove_vertex raised, incidence() hit an assert,
and the edge could not be removed. Assigning to one of them to another vertex
left the edge disagreeing with the vertices' edge lists.
Only the library binds an edge to its vertices -- the constructor, connect(),
and remove_edge() -- so they are now properties over private fields, set
through one method, and assigning raises AttributeError saying to use the
constructor or connect() instead. An edge that is in a graph always has both
of its ends.
The downstream Edge subclasses (MVTB Observation, RTB LatticeEdge and PGEdge)
all call super().__init__(v1, v2), and nothing in RTB, MVTB, RVC3 or
spatialmath assigns an endpoint.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
0 commit comments