Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public bool Alg_20170718_1(int x)
- {
- var ciclo_da_x = false;
- var scc = SCC();
- foreach (var c in scc)
- if (c.Count >= x)
- {
- ciclo_da_x = true;
- break;
- }
- Console.OutputEncoding = System.Text.Encoding.UTF8;
- Console.WriteLine("Nel grafo {0}, {1}esiste un ciclo di {2} nodi", Nome, (ciclo_da_x ? "" : "Non "), x);
- SCC_Print(scc);
- return !ciclo_da_x;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement