1
0
Files
toddcox-faster/examples/path.cpp
2021-11-12 20:36:56 -05:00

23 lines
482 B
C++

#include <vector>
#include <string>
#include <iostream>
#include <tc/solver.hpp>
#include <tc/groups.hpp>
int main() {
tc::Symbol gens(0);
auto cube = tc::group::B(3);
auto vars = tc::solve(cube, gens);
std::string start;
std::vector<std::string> names = {"a", "b", "c"};
auto words = vars.path().walk(start, names, std::plus<>());
for (const auto &word: words) {
std::cout << (word.empty() ? "-" : word) << std::endl;
}
return 0;
}