Decide support exactly, using a small deterministic adaptive policy.
Source code in src/tensorsig/offset_coded_signatures/graph_queries.py
| def cell_survives(
composition: Sequence[int],
occurrence_channels: Sequence[int],
graph: DependenceGraph,
*,
max_trees: int | None = None,
backend: str = "auto",
metrics: CellQueryMetrics | None = None,
edge_order: Iterable[Sequence[int]] | None = None,
reference_arrows: Iterable[Sequence[int]] | None = None,
) -> bool:
"""Decide support exactly, using a small deterministic adaptive policy."""
return (
cell_witness(
composition,
occurrence_channels,
graph,
max_trees=max_trees,
backend=backend,
metrics=metrics,
edge_order=edge_order,
reference_arrows=reference_arrows,
)
is not None
)
|