UNPKG

ts-ds-tool

Version:

Data structure and algorithm of TypeScript

12 lines (11 loc) 403 B
import { GraphEdge } from "../../.."; import { Graph } from "../../../graph/Graph"; import { GraphVertex } from "../../../graph/GraphVertex"; export declare function prim<T>(graph: Graph<T>): { visitedVertices: GraphVertex<T>[]; visitedEdges: GraphEdge<T>[]; }; export declare function heap_prim<T>(graph: Graph<T>): { visitedVertices: GraphVertex<T>[]; visitedEdges: GraphEdge<T>[]; };