graphology-traversal
Version:
Traversal functions for graphology.
17 lines (13 loc) • 375 B
TypeScript
import {Attributes} from 'graphology-types';
export type TraversalCallback<NodeAttributes extends Attributes = Attributes> =
(key: string, attributes: NodeAttributes, depth: number) => boolean | void;
export type TraversalMode =
| 'in'
| 'out'
| 'directed'
| 'undirected'
| 'inbound'
| 'outbound';
export type TraversalOptions = {
mode?: TraversalMode;
};