(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])) |
| 63 | |
| 64 | const graphEdgeKeys = <E, T extends Graph.Kind>(graph: Graph.Graph<SetNode, E, T>) => { |
| 65 | const nodeIds = new Map(Array.from(graph, ([index, node]) => [index, node.id])) |