copy method
Returns a copy of the instance of your object
Implementation
@override
UndirectedEdge copy() => UndirectedEdge(a, b, weight);
Returns a copy of the instance of your object
@override
UndirectedEdge copy() => UndirectedEdge(a, b, weight);