Skip to content

ChordalNbcPlan

from tensorsig.offset_coded_signatures.graph_queries import ChordalNbcPlan

Direct PEO-parent tree family for one connected chordal occurrence graph.

tree_count property

tree_count: int

Return prod_i |N_+(v_i)| for the selected PEO.

max_bag_load property

max_bag_load: int

Return 1 + max_i |N_+(v_i)| for the selected PEO.

trees

trees() -> Iterator[DirectedOccurrenceTree]

Yield the proved chordal NBC parent trees without a Cayley scan.

Source code in src/tensorsig/offset_coded_signatures/_graph/chordal_nbc.py
def trees(self) -> Iterator[DirectedOccurrenceTree]:
    """Yield the proved chordal NBC parent trees without a Cayley scan."""
    for parents in product(*self.parent_sets):
        yield tuple(zip(self.peo[:-1], parents, strict=True))