Skip to content

Commit

Permalink
Update task3.py
Browse files Browse the repository at this point in the history
  • Loading branch information
TreshMom authored Apr 17, 2024
1 parent 664cdfb commit 1728973
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions project/task3.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def is_empty(self) -> bool:
def intersect_automata(
automaton1: FiniteAutomaton, automaton2: FiniteAutomaton
) -> FiniteAutomaton:

commaon_keys = automaton1.func_to_steps.keys() & automaton2.func_to_steps.keys()
finatie_automaton = FiniteAutomaton()
finatie_automaton.func_to_steps = {}
Expand All @@ -100,7 +101,6 @@ def intersect_automata(
return finatie_automaton



def paths_ends(
graph: MultiDiGraph, start_nodes: set[int], final_nodes: set[int], regex: str
) -> list[tuple[int, int]]:
Expand All @@ -127,5 +127,4 @@ def convert_to_node(i):
if m[st, fi] != 0:
res.append((convert_to_node(st), convert_to_node(fi)))


return res

0 comments on commit 1728973

Please sign in to comment.