Hyperlinkv0.8.0-beta.28

Graph

Graph.SearchConfiginterfaceeffect/Graph.ts:4211
SearchConfig

Configuration for DFS, BFS, and postorder graph traversals.

When to use

Use to configure the starting node indices and edge-following direction for lazy graph traversals.

Details

start supplies the node indices where traversal begins. If it is omitted, the iterator is empty. direction chooses whether traversal follows outgoing or incoming edges.

Gotchas

Traversal creation throws a GraphError when any configured start node does not exist.

Source effect/Graph.ts:42114 lines
export interface SearchConfig {
  readonly start?: Array<NodeIndex>
  readonly direction?: Direction
}
Referenced by 3 symbols