Skip to content

@graphty/graphty-element / index / ResultRef

Interface: ResultRef ​

Defined in: graphty-element/src/session/shared.ts:45

One column of a run's result: the run, and optionally which of its fields.

With no field the run's primary field is meant -- value for a metric, group for a partition -- so a caller who just ran something never has to know what that algorithm calls its number. run is anything that names a run: the handle runs.start() returned, its awaited result, or its id.

ts
const run = session.runs.start("pagerank");
await session.selection.apply({ top: { run, n: 10 } });

Extended by ​

Properties ​

field? ​

readonly optional field?: string

Defined in: graphty-element/src/session/shared.ts:49

One of the fields the run publishes; the run's primary field when absent.


run ​

readonly run: RunRef

Defined in: graphty-element/src/session/shared.ts:47

The run.