Generate celtic knots algorithmically from graphs.