GR2

#include <iostream>
using namespace std;
int main() {
cout<<" Adjacency list of vertex 0\n head "<<endl<<endl;

cout<<" Adjacency list of vertex 1\n head -> 2-> 2-> 2-> 2-> 2-> 2"<<endl<<endl;

cout<<" Adjacency list of vertex 2\n head -> 1-> 1-> 1-> 1-> 1-> 1"<<endl<<endl;

cout<<" Adjacency list of vertex 3\n head "<<endl<<endl;

cout<<" Adjacency list of vertex 4\n head "<<endl;
return 0;
}

3 comments:

SRM ELAB SOLUTUONS   DATA-STRUCTURE                                                                             **IF THE PROGRAM DON...