( mutable: GraphImpl<N, E, T> )
| 2217 | |
| 2218 | /** @internal */ |
| 2219 | const invalidateCycleFlagOnRemoval = <N, E, T extends Kind = "directed">( |
| 2220 | mutable: GraphImpl<N, E, T> |
| 2221 | ): void => { |
| 2222 | // Only invalidate if the graph had cycles (removing edges/nodes cannot introduce cycles in acyclic graphs). |
| 2223 | if (mutable.acyclic._tag === "Some" && mutable.acyclic.value === false) { |
| 2224 | mutable.acyclic = Option.none() |
| 2225 | } |
| 2226 | } |
| 2227 | |
| 2228 | /** @internal */ |
| 2229 | const invalidateCycleFlagOnAddition = <N, E, T extends Kind = "directed">( |
no outgoing calls
no test coverage detected