Complete the given snippet of code for the adjacency list representation of a weighted directed graph. [code] class neighbor

Kim Trang

New member
Complete the given snippet of code for the adjacency list representation of a weighted directed graph.
Code:
	class neighbor
        {
		int vertex, weight;
		____ next;
	}
	class vertex
        {
		string name;
		_____ adjlist;
	}
	vertex adjlists[101];
A. vertex, vertex
B. neighbor, vertex
C. neighbor, neighbor
D. vertex, neighbor
 

Tìm kiếm

Back
Top