// Type definitions for ngraph.path v1.0.2 // Project: https://github.com/anvaka/ngraph.path // Definitions by: Nathan Westlake // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Graph, Link, Node, NodeId } from "ngraph.graph" declare module "ngraph.path" { interface PathFinderOptions { oriented?: boolean quitFast?: boolean heuristic?: (from: Node, to: Node) => number distance?: (from: Node, to: Node, link: Link) => number blocked?: (from: Node, to: Node, link: Link) => boolean } interface PathFinder { find: (from: NodeId, to: NodeId) => Node[] } export function aStar(graph: Graph, options?: PathFinderOptions): PathFinder export function aGreedy(graph: Graph, options?: PathFinderOptions): PathFinder export function nba(graph: Graph, options?: PathFinderOptions): PathFinder }