The task is to demonstrate a wide bypass of an undirected graph. The code to bypass the graph to write / find is not a problem. But there was a question of demonstration of the graph. Of course, you can display it as an adjacency list, but I still wonder how you can draw it? I know that there is such a thing as Qt. What else can you use for this task? If you throw ideas or articles about this - it will be cool (English-language resources are welcome).
Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer to the participants Abyx , Harry , Vladimir Martyanov , cheops , AK ♦ December 1 '17 at 21:57 .
The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
2 answers
In the second part (chapters 12–16), Biernn Straustrup’s book Principles and Practice of Using C ++ discusses the graphical user interface and graphics programming with the FLTK (Fast Light Tool Kit) library. There everything is very intelligibly explained, a lot of exercises. In particular, the
OpenPolylineclass described in this book is suitable for your task. And thenextbutton to update;)If you want to use a more advanced tool, I recommend to pay attention to the library SFML (Simple and Fast Multimedia Library). Under it there is a lot of description directly on the site.
GrapfViz is very convenient for such purposes.