(weight: number)
| 20 | }) |
| 21 | |
| 22 | const makeSingleEdgeGraph = (weight: number) => |
| 23 | Graph.directed<string, number>((mutable) => { |
| 24 | const source = Graph.addNode(mutable, "source") |
| 25 | const target = Graph.addNode(mutable, "target") |
| 26 | Graph.addEdge(mutable, source, target, weight) |
| 27 | }) |
| 28 | |
| 29 | const unsupportedEdgeWeights = [NaN, -Infinity] as const |
| 30 |