kups.core.neighborlist.postprocess
¶
Postprocessors for the neighbor list pipeline.
Postprocessors run after compaction and can transform the final Edges
using both the edges and the prepared pipeline context. They are the right
place for graph-level output shaping that should not be coupled to row
compaction itself.
MirrorPairEdges
¶
Bases: Postprocessor[Literal[2]]
Append reversed pair edges for undirected graph outputs.
The default mirrors only self-graph update calls selected by
ctx.for_indices. Full self-neighbor calls already emit both directions
before compaction, while for_indices calls operate on affected ids in
the already-updated lh table and are deduplicated by
ForIndicesDedupMask. Their reverse edges are restored after compaction.
Attributes:
| Name | Type | Description |
|---|---|---|
only_when_for_indices |
bool
|
When |