(graph: Graph.Graph<SetNode, E, T>)
| 56 | } |
| 57 | |
| 58 | const graphNodeIds = <E, T extends Graph.Kind>(graph: Graph.Graph<SetNode, E, T>) => |
| 59 | new Set(Array.from(graph, ([, node]) => node.id)) |
| 60 | |
| 61 | const graphNodeLabels = <E, T extends Graph.Kind>(graph: Graph.Graph<SetNode, E, T>) => |
| 62 | new Map(Array.from(graph, ([, node]) => [node.id, node.label])) |