( mutable: MutableGraph<N, E, T>, edgeIndex: EdgeIndex )
| 2825 | * @since 3.18.0 |
| 2826 | */ |
| 2827 | export const removeEdge = <N, E, T extends Kind = "directed">( |
| 2828 | mutable: MutableGraph<N, E, T>, |
| 2829 | edgeIndex: EdgeIndex |
| 2830 | ): void => { |
| 2831 | const impl = getMutableImplForMutation(mutable) |
| 2832 | // Only invalidate cycle flag if an edge was actually removed |
| 2833 | // and only if the graph wasn't already known to be acyclic |
| 2834 | if (removeEdgeInternal(impl, edgeIndex)) { |
| 2835 | invalidateCycleFlagOnRemoval(impl) |
| 2836 | } |
| 2837 | } |
| 2838 | |
| 2839 | /** |
| 2840 | * Removes multiple edges from a mutable graph. |
nothing calls this directly
no test coverage detected