46.
Which of the following is true?

47.
If there are more than 1 topological sorting of a DAG is possible, which of the following is true.

49.
What would be the time complexity of the following function which adds an edge between two vertices i and j, with some weight 'weigh' to the graph having V vertices?
vector<int> adjacent[15] ;
vector<int> weight[15]; 
 
void addEdge(int i,int j,int weigh) 
{	 
	adjacent[a].push_back(i); 
	adjacent[b].push_back(j); 
	weight[a].push_back(weigh); 
	weight[b].push_back(weigh); 
}

Read More Section(Graphs)

Each Section contains maximum 100 MCQs question on Graphs. To get more questions visit other sections.