My textbook defined connectedness in graphs in the following way:
A graph G(V, E) is said to be connected if for every pair of vertices u and v there is a path in G from u to v.
The textbook then asks the reader to complete the following exercise:
Show by giving an example that there are connected graphs in which there is no path that goes through all the vertices.
I take the exercise as impossible to complete. By definition, connected graphs are those in which there is some path that goes through all the vertices. Might I have misunderstood either the definition or exercise? Could it be possible that the textbook made a typo?
Any advice or clarification would be greatly appreciated.
A connected graph means that between any two vertices, there is some path. For example if the two vertices share an edge, there is a path between them consisting of just that single edge.
This says nothing about whether or not there is a single path that goes through all the vertices in some order. Remember that by definition a path cannot visit any vertex more than once. So as you go from one vertex to the next, it might not be possible to visit all vertices without re-visiting a previous one.