title: How can I implement weighted directed graph using vectors in C++?
body: <p>I am trying to use the array of 2D vectors to create the adjacency list representation for the directed weighted graph. I am using the  array of 2D vectors so that with the vertex the corresponding weight can be stored. Any better method ?</p>