I am implementing an intercity map using graphs. Since it is undirected, I used an upper triangular adjacency matrix using a vector of vertices and vector of 'pointer to array of edges' in the Graph class.
I need to traverse such a graph. Vertices have information and edges are weighted.
Why would I need BFS or DFS in such a traversal when I already have all the vertex and edge information through direct access?