@internal
( graph: Graph<N, E, T> | MutableGraph<N, E, T> )
| 372 | |
| 373 | /** @internal */ |
| 374 | function assertMutable<N, E, T extends Kind = "directed">( |
| 375 | graph: Graph<N, E, T> | MutableGraph<N, E, T> |
| 376 | ): asserts graph is MutableGraph<N, E, T> { |
| 377 | if (!graph.mutable) { |
| 378 | throw new GraphError({ message: "Graph is not mutable" }) |
| 379 | } |
| 380 | } |
| 381 | |
| 382 | /** @internal */ |
| 383 | const getMutableImplForMutation = <N, E, T extends Kind>( |
no outgoing calls
no test coverage detected