Изменения
→Псевдокод
Vertex t1 = u.transitions.getVertex(symbol)
Vertex t2 = v.transitions.getVertex(symbol)
'''if''' (visited1[t1] != visited2[t2]) '''return''' ''false'' '''if''' (!visited1[t1] && !visited2[t2]) result = result '''and''' dfs(t1, t2)
'''return''' result