pattern_clustering.boost.group_by_identical_pa
- group_by_identical_pa(pas: list, are_equal: Optional[callable] = None) dict[source]
Groups matching
PatternAutomatonpython instances.- Parameters
pas – A
list(PatternAutomaton)instance.are_equal – A
callable(PatternAutomaton, PatternAutomaton) -> boolchecking whether two PAs are homomorphic (passNoneif the compared PAs are minimal to accelerate the processing).
- Returns
A dictionary mapping each reference PAs to the matching instances found in
pas.