GraphPath<T>
Defined in: rxdb-plugin-graph/src/graph-repository.interface.ts:237
图路径结果
Type Parameters
| Type Parameter |
|---|
T extends EntityType |
Properties
edges
edges: object[];
Defined in: rxdb-plugin-graph/src/graph-repository.interface.ts:247
路径上的边数组(按顺序)
properties?
optional properties: Record<string, any>;
sourceId
sourceId: string;
targetId
targetId: string;
weight?
optional weight: number;
length
length: number;
Defined in: rxdb-plugin-graph/src/graph-repository.interface.ts:257
路径长度(跳数)
nodes
nodes: InstanceType<T>[];
Defined in: rxdb-plugin-graph/src/graph-repository.interface.ts:242
路径上的节点数组(按顺序) 包括源节点和目标节点
totalWeight?
optional totalWeight: number;
Defined in: rxdb-plugin-graph/src/graph-repository.interface.ts:262
总权重(如果启用了边权重)