You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

4 lines
391 B

4 months ago
import { ID, Node, PlainObject } from '../types';
export declare function doBFS<N extends PlainObject>(queue: Node<N>[], visited: Set<ID>, fn: (node: Node<N>) => boolean | void, navigator: (id: ID) => Node<N>[]): boolean;
export declare function doDFS<N extends PlainObject>(node: Node<N>, visited: Set<ID>, fn: (node: Node<N>) => boolean | void, navigator: (id: ID) => Node<N>[]): boolean;