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