@internal
( graph: Graph<N, E, T> | MutableGraph<N, E, T> )
| 440 | |
| 441 | /** @internal */ |
| 442 | function assertMutable<N, E, T extends Kind = "directed">( |
| 443 | graph: Graph<N, E, T> | MutableGraph<N, E, T> |
| 444 | ): asserts graph is MutableGraph<N, E, T> { |
| 445 | if (!graph.mutable) { |
| 446 | throw new GraphError({ message: "Graph is not mutable" }) |
| 447 | } |
| 448 | } |
| 449 | |
| 450 | // ============================================================================= |
| 451 | // Constructors |
no outgoing calls
no test coverage detected