There should be a method for adding edges from another graph, for example AddEdgesFrom[K comparable, T any](source Graph[K, T]) error. Maybe accepting a []Edge[K] instead of a Graph[K, T] might make sense, too. In that case, a new method for retrieving all edges as a []Edge[K] would be necessary as well.
There should be a method for adding edges from another graph, for example
AddEdgesFrom[K comparable, T any](source Graph[K, T]) error
. Maybe accepting a[]Edge[K]
instead of aGraph[K, T]
might make sense, too. In that case, a new method for retrieving all edges as a[]Edge[K]
would be necessary as well.