Bruteforce solution - implementing function setupMenu(), which is similar to generateGraph() - the difference is that it makes graph with one vertex, so the user can make his own graph starting with this one.  Tried to start with empy graph - problem is, after adding a few vertexes and edges program can't find a cycle because graph is still empty (not adding new elements).