Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include "list.h"
- #include "funkcje.h"
- using namespace std;
- int main() {
- List vertices;
- if(!wczytaj("grafy.txt", vertices)) return 0;
- List red, blue;
- List checked;
- int first = vertices.get(0);
- color_vertex(first, vertices, red, blue, 0, checked);
- for (int i = 0; i < red.size(); i++) {
- cout << red.get(i) << " ";
- }
- std::cout << endl;
- for (int i = 0; i < blue.size(); i++) {
- cout << blue.get(i) << " ";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement