Can someone help me with graphs? I'm trying to solve a question where I am suppose to determine cities and paths between them, and then determine if it's possible to travel between all the cities, independent from what city I start in.
Long time ago, I remember seeing a "very simple" solution for questions like this, using vectors, but for some reason, I can't find anything related to that now (or the ones I do, simply overcomplicate the solution).