Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- vrcholy[u].barva = 'S';
- if (vysledek.length() == 0) {
- vysledek = "" + vrcholy[u].jmeno;
- } else {
- vysledek += ", " + vrcholy[u].jmeno;
- }
- for (int i = 0; i < vrcholy.length; i++) {
- if (matice[u][i] == 1) {
- int v = i;
- if (vrcholy[v].barva == 'B') {
- dfs(envy);
- }
- }
- }
- vrcholy[u].barva = 'C';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement