Consider changing add_edge(src, dst, e)
to add_edge(e: impl IntoEdge)
#51
Labels
discussion
High-level topic for discussion and brainstorming
Advantages:
graph.add_edge((src, dst))
instead ofgraph.add_edge(src, dst, ())
.Disadvantages:
add_edge(&mut self, src: VertexIndex, dst: VertexIndex, edge: E)
is much clearer thanadd_edge<T: IntoEdge<VertexIndex, E, Ty>>(&mut self, edge: T)
.G::VertexIndex
directly, butVI: Borrow<G::VertexIndex>
instead.In summary, I am not much in favor of this change, but just wanted to leave a note if I change the opinion and the disadvantages will turn out not that bad.
The text was updated successfully, but these errors were encountered: