dominikbraun / graph

A library for creating generic graph data structures and modifying, analyzing, and visualizing them.
https://graph.dominikbraun.io
Apache License 2.0
1.8k stars 94 forks source link

Method for updating an edge #107

Closed dominikbraun closed 1 year ago

dominikbraun commented 1 year ago

There should be a method for updating an edge, for example UpdateEdge[K comparable](source, target K, options ...func(*EdgeProperties)) error. The API should be exactly the same as for AddEdge, so that the user can use the existing functional options for setting the edge properties.