pattern_clustering.regexp.make_map_name_dfa
- make_map_name_dfa(map_name_re: Optional[dict] = None, names: Optional[iter] = None) dict[source]
Builds a dictionary that maps a list of pattern name with the corresponding
pybgl.Automatoninstance built according to regular expressions.- Parameters
names (list) – A list of string, where each string identifies a pattern names (by default, every keys of
map_name_reis considered).map_name_re (dict) – Maps each pattern name (
str) with the corresponding regular expression (str). Defaults toNonefor the default pattern collection.