Dijkstra.NET icon indicating copy to clipboard operation
Dijkstra.NET copied to clipboard

Allow the functionality to shallow clone a graph

Open alexhcheng opened this issue 4 years ago • 1 comments

We have a scenario where we have a "base" graph and then a number of enhanced graph which is just "base" graph + a few extra nodes and edges.

Instead of rebuilding the "base" graph each time, it would be nice to have the ability to clone this dictionary https://github.com/matiii/Dijkstra.NET/blob/master/src/Dijkstra.NET/Graph/Graph.cs#L12 and return a new Graph.

alexhcheng avatar Jan 28 '21 16:01 alexhcheng

@matiii : if you think this is a good idea, i can work on this. thanks

alexhcheng avatar Jan 28 '21 16:01 alexhcheng