@antv/algorithm
Version:
graph algorithm
8 lines (7 loc) • 349 B
TypeScript
import { GraphData } from './types';
export declare const findShortestPath: (graphData: GraphData, start: string, end: string, directed?: boolean, weightPropertyName?: string) => {
length: any;
path: any;
allPath: any;
};
export declare const findAllPath: (graphData: GraphData, start: string, end: string, directed?: boolean) => any[];