Advertisement
Davencode

es3

Jan 17th, 2022
22
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. ALGO(G,s,v,u)
  2. INIT(G)
  3. c1[u]=c2[u]=nero
  4. dfs_visit(G,s,c1)
  5. dfs_visit(GT,v,c2)
  6. if(c1[v]=n && c2[s]=n)then
  7. return true
  8. return false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement