I need to create a graph generator for my next project. Generally algorithms are trying to find a Hamiltonian path in a graph. So I can create a graph generator then I can decide whether a graph has a Hamiltonian path or not. If not, I can regenerate the graph but this is not a cool way.
I want my generated graph has always Hamiltonian path.
In addition, my graph has two meet two specific condition
- vertices can only have 2,3 or 4 edges.
- possible number of vertices follows this sequence: 6, 10, 15, 20, 25...n-5, n where
n % 5 = 0
Could you explain me how should I start and which way I should follow to achieve this easily?

