Adjacency List:
An adjacency list represents a graph using an array of linked lists.
Each index in the array corresponds to a vertex, and the linked list at that index contains the other vertices connected to the current vertex.
Pros:
Cons:
Structure:
struct node { int vertex; struct node* next; }; struct Graph { int numVertices; struct node** adjLists; };
Adjacency Matrix:
BK-Tree:
Segment Tree:
Segment Trees: