count_component_sizes

count_component_sizes(mappings: Iterable[Mapping], prefix_allowlist: str | Collection[str] | None = None) Counter[frozenset[str]][source]

Get a counter where the keys are the set of all prefixes in a weakly connected component.