So I'm looking forward to pick a lets say a triangle/square/../hexagon from a graph.
What do i mean by that:
input from keybord: a-b b-c c-a
and
output m-n-o, x-y-z, s-t-u
(where each of this subgraphs respect that relation ship pattern of the vertex)
How to solve this: It has to be a raw version not with optimisations or other stuff, but without backtracking / recursion.
Solution: transpose the vertexes to a matrix and do combinations in for loops.
The problem i have: for instance if i want my graph to accept up to octogns, do I need to make 8 for in for's ?!