UNPKG

graphology-traversal

Version:
17 lines (13 loc) 375 B
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; };