Algorithm

Adjacency List and Matrix Representation of Graph

Adjacency List and Matrix Representation of Graph

Even though they look different, all types of graphs can be represented in a similar way. There’re generally two types of Graph Representation: Adjacency Matrix Adjacency List Adjacency List Adjacency List consists of Linked Lists. Each vertex is considered an array index, and each element represents a linked list. These linked lists contain the vertices…

End of content

End of content