Graph

Entry point for constructing graph-level view filters.

The Graph filter restricts when and where the graph is evaluated, independent of node or edge predicates. It defines the temporal scope (windows, snapshots, latest state) and layer scope for subsequent node and edge filters.

All methods are static and return a ViewFilterBuilder, which can then be refined further or combined with node/edge predicates.

Methods

MethodDescription
afterRestricts evaluation to times strictly after the given time.
atRestricts evaluation to a single point in time.
beforeRestricts evaluation to times strictly before the given time.
latestEvaluates filters against the latest available state of the graph.
layerRestricts evaluation to a single layer.
layersRestricts evaluation to any of the given layers.
snapshot_atEvaluates filters against a snapshot of the graph at a given time.
snapshot_latestEvaluates filters against the most recent snapshot of the graph.
windowRestricts evaluation to events within a time window.

Method Details

after

Signature: after(time)

Restricts evaluation to times strictly after the given time.

Parameters

NameTypeDefaultDescription
timeint-Lower time bound.

at

Signature: at(time)

Restricts evaluation to a single point in time.

Parameters

NameTypeDefaultDescription
timeint-Event time.

before

Signature: before(time)

Restricts evaluation to times strictly before the given time.

Parameters

NameTypeDefaultDescription
timeint-Upper time bound.

latest

Evaluates filters against the latest available state of the graph.

layer

Signature: layer(layer)

Restricts evaluation to a single layer.

Parameters

NameTypeDefaultDescription
layerstr-Layer name.

layers

Signature: layers(layers)

Restricts evaluation to any of the given layers.

Parameters

NameTypeDefaultDescription
layerslist[str]-Layer names.

snapshot_at

Signature: snapshot_at(time)

Evaluates filters against a snapshot of the graph at a given time.

Parameters

NameTypeDefaultDescription
timeint-Snapshot time.

snapshot_latest

Evaluates filters against the most recent snapshot of the graph.

window

Signature: window(start, end)

Restricts evaluation to events within a time window.

The window is inclusive of start and exclusive of end.

Parameters

NameTypeDefaultDescription
startint-Start time.
endint-End time.