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
The constraints (Hashable v, Eq v) for methods of the Graph class are totally unnecessary. These constraints are implementation-specific for UGraph and DGraph, so the constraints should be moved to instances of the Graph.
Totally agree, will try and refactor that as soon as I have the time. If you'd like to try a PR for this though, it's welcome :) if not I'll try to make time for this soon, it's been stalled sadly
The constraints
(Hashable v, Eq v)
for methods of theGraph
class are totally unnecessary. These constraints are implementation-specific forUGraph
andDGraph
, so the constraints should be moved to instances of theGraph
.Of course, the
Eq v
makes sense at some of the methods (e.g.removeVertex
) but definitely not all.The text was updated successfully, but these errors were encountered: