getNeighbors
getNeighbors: ((nodeId) => {
id: string;
weight: number;
}[] | Promise<{
id: string;
weight: number;
}[]>)
Type declaration
- (nodeId): {
id: string;
weight: number;
}[] | Promise<{
id: string;
weight: number;
}[]> Returns {
id: string;
weight: number;
}[] | Promise<{
id: string;
weight: number;
}[]>
Get neighbors with edge weights. Can be sync or async.