title: How do I select some items having same value in 0th position from a 2D list in python
body: <p>I want to separately store adjacency list for all the nodes from a graph.How can I do this? 
  Like if there are 7 vertices I want 7 lists containing arcs emanating from ecah and every node.</p>