Files
lan-manager/web/node_modules/@antv/algorithm/es/util.d.ts
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

26 lines
872 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { EdgeConfig } from './types';
/**
* 获取指定节点的所有邻居
* @param nodeId 节点 ID
* @param edges 图中的所有边数据
* @param type 邻居类型
*/
export declare const getNeighbors: (nodeId: string, edges?: EdgeConfig[], type?: 'target' | 'source' | undefined) => string[];
/**
* 获取指定节点的出边
* @param nodeId 节点 ID
* @param edges 图中的所有边数据
*/
export declare const getOutEdgesNodeId: (nodeId: string, edges: EdgeConfig[]) => EdgeConfig[];
/**
* 获取指定节点的边,包括出边和入边
* @param nodeId 节点 ID
* @param edges 图中的所有边数据
*/
export declare const getEdgesByNodeId: (nodeId: string, edges: EdgeConfig[]) => EdgeConfig[];
/**
* 生成唯一的 ID规则是序号 + 时间戳
* @param index 序号
*/
export declare const uniqueId: (index?: number) => string;