generic graph and astar
doc + cycle is now template choice