跳到主要内容

GraphPath<T>

Defined in: rxdb-plugin-graph/src/graph-repository.interface.ts:304

图路径结果

Type Parameters​

Type Parameter
T extends EntityType

Properties​

edges​

edges: object[];

Defined in: rxdb-plugin-graph/src/graph-repository.interface.ts:314

路径上的边数组(按顺序)

properties?​

optional properties?:
| GraphEdgePropertiesRecord
| null;

sourceId​

sourceId: string;

targetId​

targetId: string;

weight?​

optional weight?: number | null;

length​

length: number;

Defined in: rxdb-plugin-graph/src/graph-repository.interface.ts:324

路径长度(跳数)


nodes​

nodes: InstanceType<T>[];

Defined in: rxdb-plugin-graph/src/graph-repository.interface.ts:309

路径上的节点数组(按顺序) 包括源节点和目标节点


totalWeight?​

optional totalWeight?: number;

Defined in: rxdb-plugin-graph/src/graph-repository.interface.ts:329

总权重(如果启用了边权重)