@crstrskp/graph
Version:
High-performance TypeScript graph algorithms library optimized for trading bots and arbitrage detection
23 lines • 668 B
TypeScript
import { Edge } from "./Edge";
import { IVertex } from "./IVertex";
import { Attributes } from "./types/Attributes";
export declare class Vertex implements IVertex {
label: string;
id: number;
visited: boolean;
cost: number;
attributes: Attributes;
prev: Edge | undefined;
setLabel(s: string): void;
getLabel(): string;
constructor(payload: any);
updateCost(): void;
setCost(cost: number): void;
getCost(): number;
getPrev(): Edge | undefined;
setPrev(e: Edge): void;
getId(): number;
setAttribute(key: string, value: any): void;
getAttribute(key: string): any;
}
//# sourceMappingURL=Vertex.d.ts.map