Which of the following is a necessary condition for applying DFS or BFS algorithms on a graph?
Graph must be a directed graph
Graph must have equal weights on all edges
Graph must have a designated starting vertex
Graph must be an undirected graph

Advanced Data Structures Exercises are loading ...