copy method

  1. @override
SimpleUndirectedEdge copy()
override

Returns a copy of the instance of your object

Implementation

@override
SimpleUndirectedEdge copy() => SimpleUndirectedEdge(a, b, weight);