I have seen dijkstra's algorithm for weighted graphs what should I do to implement that to find shortest path in an unweighted graph?
Should i consider weights between all edges 0 or 1?
Secondly I want to implement a bfs on 10^5
nodes to check whether a node is reachable from any other node? Is it possible, as defining a 2-D array of [10^5][10^5]
gives a memory fault.