Replies: 2 comments 1 reply
-
Il costo non viene specificato, soluzione naive: def es4(G,arco):
K1 = Kruskal(G)
if arco not in K1: return "YES"
K2 = Kruskal(G senza arco)
if len(V(K1)) == len(V(K2)):
return "YES"
return "NO" |
Beta Was this translation helpful? Give feedback.
1 reply
-
Dato che tutti gli |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Beta Was this translation helpful? Give feedback.
All reactions