Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void makeTrail(std::ofstream& ofs, const int64_t& amountOfVertices) {
- size_t v = 0;
- while ((v + 1) < amountOfVertices)
- ofs << v << ' ' << ++v << std::endl;
- }
- void makeTour(std::ofstream& ofs, const int64_t& amountOfVertices) {
- size_t v = 0;
- while (true) {
- ofs << v << ' ';
- if ((v + 1) != amountOfVertices)
- ofs << ++v << std::endl;
- else {
- ofs << '0' << std::endl;
- break;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment