deltakit.core.decoding_graphs.decompositions#

deltakit.core.decoding_graphs.decompositions(target_edge: DecodingHyperEdge, edges: Sequence[DecodingHyperEdge]) Iterator[frozenset[DecodingHyperEdge]]#

Generate decompositions of the given edge into the parts from edges. The union of all vertices in the parts must equal the vertices in the original edges for it to be considered a valid decomposition.

Parameters:
Yields:

Iterator[FrozenSet[DecodingHyperEdge]] – A generator of frozensets with each item a different decomposition of the input edge.