numberNode index for node identification using plain numbers.
When to use
Use when storing or passing the stable identifier of a graph node between
Graph operations.
Details
addNode allocates node identifiers from the graph's next node index.
Gotchas
A NodeIndex is an identifier, not an array offset. Removed node identifiers
are not reused.
Source effect/Graph.ts:491 lines
export type type NodeIndex = numberNode index for node identification using plain numbers.
When to use
Use when storing or passing the stable identifier of a graph node between
Graph operations.
Details
addNode allocates node identifiers from the graph's next node index.
Gotchas
A NodeIndex is an identifier, not an array offset. Removed node identifiers
are not reused.
NodeIndex = numberReferenced by 40 symbols
Graph.AllPairsResultGraph.AstarConfigGraph.BellmanFordConfigGraph.DijkstraConfigGraph.EdgeGraph.NodeWalkerGraph.PathResultGraph.ProtoGraph.SearchConfigGraph.TopoConfigGraph.addEdgeGraph.addNodeGraph.astarGraph.beginMutationGraph.bellmanFordGraph.bfsGraph.connectedComponentsGraph.dfsGraph.dfsPostOrderGraph.dijkstraGraph.filterMapNodesGraph.filterNodesGraph.findEdgeGraph.findEdgesGraph.findNodeGraph.findNodesGraph.floydWarshallGraph.getNodeGraph.hasEdgeGraph.hasNodeGraph.isAcyclicGraph.isBipartiteGraph.neighborsGraph.neighborsDirectedGraph.predecessorsGraph.removeNodeGraph.stronglyConnectedComponentsGraph.successorsGraph.topoGraph.updateNode