Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Algo (G,u,p)
- For each v € V
- Color(v) = b
- Return fun (G,u, p)
- Fun (G, u, p)
- color[u] = Grigio
- flag = false
- If L(u) == p
- Return true
- For each v € adj (u)
- If color(v) == Grigio
- flag = false
- Else if color(v) == Bianco
- flag = fun (G, v, p)
- color[u] = Nero
- return flag
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement