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.
 
 
 
 

8 lines
355 B

import { IAlgorithmCallbacks, GraphData } from './types';
/**
* 深度优先遍历图
* @param data GraphData 图数据
* @param startNodeId 开始遍历的节点的 ID
* @param originalCallbacks 回调
*/
export default function depthFirstSearch(graphData: GraphData, startNodeId: string, callbacks?: IAlgorithmCallbacks, directed?: boolean): void;