export type Comparator = (a: T, b: T) => number; // export enum DFSOrderPattern {'pre' = 'pre', 'in' = 'in', 'post' = 'post'} export type DFSOrderPattern = 'pre' | 'in' | 'post';