I need to create a graph such that i read the number of vertices from a file and the edges too. Example "a b 5"--> means theres an edge from source 'a', destination 'b' and the edge weight is '5'. If i have some random number of vertices say 5, i need to create an adjacency list of the graph, using an array of linked lists. But i dont know how to use it!!
Could anybody help me with it?