What is the use of pushback

i am not able to understand what role pushback function is playing in this adjancey list.

ps: I know about push_back()

hello @adarshsingh2k

push back is simply inserting pair ( y,wt) at the end of list whose index is x.