Data Structures

What is Adjacency list primarily used for?

Correct answer

A. A way of representing a graph where each vertex stores a list of its neighboring vertices.

Explanation

Adjacency list refers to a way of representing a graph where each vertex stores a list of its neighboring vertices.