DataStructure to use for Graph during interviews

I've seen multiple DS being used for Graph implementation for interview practices. I was wondering which would be the better choice?

  1. HashMap
  2. Array(2D)
  3. Doubly Linked List
  4. Singly Linked List
  5. Any other Data Structure!
Comments (0)