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 2

    1. 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 OpenPolyline class described in this book is suitable for your task. And the next button to update;)

      • Link to the Stroustrup book, it can be found and downloaded in pdf format on the Internet.

      • Link to the Stroustrup resource where you can download code samples from the book.

      • Link to the FLTK library website. How to install it is described in the application of the book.

    2. 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.

      • Link to the SFML library site.

      • Link to the library description. All in English, as ordered;)

      GrapfViz is very convenient for such purposes.

      https://www.graphviz.org/