Node

Constructs node filter expressions.

Each method returns either:

  • a field-specific filter builder, or
  • a view-restricted filter context, or
  • a boolean predicate over node state.

Methods

MethodDescription
afterRestricts node evaluation to times strictly after the given time.
atRestricts node evaluation to a single point in time.
beforeRestricts node evaluation to times strictly before the given time.
by_state_column
idSelects the node ID field for filtering.
is_activeMatches nodes that have at least one event in the current view.
latestEvaluates filters against the latest available state of each node.
layerRestricts evaluation to nodes belonging to the given layer.
layersRestricts evaluation to nodes belonging to any of the given layers.
metadataFilters a node metadata field by name.
nameSelects the node name field for filtering.
node_typeSelects the node type field for filtering.
propertyFilters a node property by name.
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 node evaluation to the given time window.

Method Details

after

Signature: after(time)

Restricts node evaluation to times strictly after the given time.

Parameters

NameTypeDefaultDescription
timeint-Lower time bound.

at

Signature: at(time)

Restricts node evaluation to a single point in time.

Parameters

NameTypeDefaultDescription
timeint-Event time.

before

Signature: before(time)

Restricts node evaluation to times strictly before the given time.

Parameters

NameTypeDefaultDescription
timeint-Upper time bound.

by_state_column

Signature: by_state_column(state, col)

Parameters

NameTypeDefaultDescription
stateAny-
colAny-

id

Selects the node ID field for filtering.

is_active

Matches nodes that have at least one event in the current view.

latest

Evaluates filters against the latest available state of each node.

layer

Signature: layer(layer)

Restricts evaluation to nodes belonging to the given layer.

Parameters

NameTypeDefaultDescription
layerstr-Layer name.

layers

Signature: layers(layers)

Restricts evaluation to nodes belonging to any of the given layers.

Parameters

NameTypeDefaultDescription
layerslist[str]-Layer names.

metadata

Signature: metadata(name)

Filters a node metadata field by name.

Metadata is shared across all temporal versions of a node.

Parameters

NameTypeDefaultDescription
namestr-Metadata key.

name

Selects the node name field for filtering.

node_type

Selects the node type field for filtering.

property

Signature: property(name)

Filters a node property by name.

The property may be static or temporal depending on the query context.

Parameters

NameTypeDefaultDescription
namestr-Property key.

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 node evaluation to the given time window.

The window is inclusive of start and exclusive of end.

Parameters

NameTypeDefaultDescription
startint-Start time.
endint-End time.