In input, he mentions #nodes and #edges of each nodes has, right? create an array of linked lists.. each index in the array represents the node number and the linked list of that represents edges of that node. Am I right?
On Wed, Apr 25, 2012 at 5:40 PM, Radhakrishnan Venkataramani < radhakrishnance...@gmail.com> wrote: > How will you implement a graph data structure ? > Give an linked implementation as we do not know how many nodes will be > there and how many edges will be there. > Make a copy of this graph.. > > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.