(self: Graph<N, E, Kind>, that: Graph<N, E, Kind>)
| 991 | |
| 992 | /** @internal */ |
| 993 | const assertSameKind = <N, E>(self: Graph<N, E, Kind>, that: Graph<N, E, Kind>): void => { |
| 994 | if (self.type !== that.type) { |
| 995 | throw new GraphError({ message: `Cannot combine ${self.type} and ${that.type} graphs` }) |
| 996 | } |
| 997 | } |
| 998 | |
| 999 | /** |
| 1000 | * Composes two graphs, merging nodes by identity. |