UNPKG

@crstrskp/graph

Version:

High-performance TypeScript graph algorithms library optimized for trading bots and arbitrage detection

22 lines 571 B
import { Vertex } from "./Vertex"; import { Attributes } from "./types/Attributes"; export declare class Edge { start: Vertex; end: Vertex; id: number; cost: number; prev: Vertex | undefined; attributes: Attributes; /** * */ constructor(start: Vertex, end: Vertex); getCost(): number; setCost(cost: number): void; getPrev(): Vertex | undefined; setPrev(p: Vertex): void; getId(): number; setAttribute(key: string, value: any): void; getAttribute(key: string): any; } //# sourceMappingURL=Edge.d.ts.map