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