Describe the bug
When using deleteEdge(edge) it deletes all outgoing edges of the source vertex and all incoming edges of destination vertex. This is not the case for deleteEdgeSrcToDest(src, dest).
To Reproduce
Create a graph with the vertices "hello", "hi", "hey"
Create the edges "hello"->"hi", "hello"->"hey"
Delete the edge "hello"->"hi"
The edge "hello"->"hey" has been deleted even though that was not requested
Expected behavior
Only the specified edge should be deleted.
Desktop (please complete the following information):
Describe the bug When using
deleteEdge(edge)
it deletes all outgoing edges of the source vertex and all incoming edges of destination vertex. This is not the case fordeleteEdgeSrcToDest(src, dest)
.To Reproduce
Expected behavior Only the specified edge should be deleted.
Desktop (please complete the following information):
Additional context directed-graph.ts#L201 directed-graph.ts#L206