Concept

Adjacency List

An adjacency list represents all of the edges in a graph as a list. It is an array of lists where the size of the array is the number of vertices in the graph. For a vertex i and an array a, the entry a[i] would represent the list of vertices that are adjacent to the vertex i (which is typically unordered).

0

1

Updated 2021-05-25

Tags

Python Programming Language

Data Science