Topological sort BFS

if there is a implementation of unoredered_map type graph
so we dont know the no of vertices so should i first calculate
no of vertices in order to make indegree array of size V?

hello @deepakjumani09
yeah if u want to make indegree array then u need to know number of vertices in graph.
in most of thr problems number of vertices will be given to u .

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.