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
| Method | Description |
|---|---|
after | Restricts evaluation to times strictly after the given time. |
at | Restricts evaluation to a single point in time. |
before | Restricts evaluation to times strictly before the given time. |
latest | Evaluates filters against the latest available state of the graph. |
layer | Restricts evaluation to a single layer. |
layers | Restricts evaluation to any of the given layers. |
snapshot_at | Evaluates filters against a snapshot of the graph at a given time. |
snapshot_latest | Evaluates filters against the most recent snapshot of the graph. |
window | Restricts evaluation to events within a time window. |
Method Details
after
Signature: after(time)
Restricts evaluation to times strictly after the given time.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
time | int | - | Lower time bound. |
at
Signature: at(time)
Restricts evaluation to a single point in time.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
time | int | - | Event time. |
before
Signature: before(time)
Restricts evaluation to times strictly before the given time.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
time | int | - | 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
| Name | Type | Default | Description |
|---|---|---|---|
layer | str | - | Layer name. |
layers
Signature: layers(layers)
Restricts evaluation to any of the given layers.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
layers | list[str] | - | Layer names. |
snapshot_at
Signature: snapshot_at(time)
Evaluates filters against a snapshot of the graph at a given time.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
time | int | - | 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.