#include <iostream>#include <cstdlib>usingnamespacestd;/* * adjacency list node */structadjlistnode {intdata;structadjlistnode* next; };/* * adjacency list */structadjlist {structadjlistnode *head; };/* * class
3. If yes, then store 1 in the matrix. 4. Using PrintMat(), print the adjacency matrix. 5. Exit. advertisement Runtime Test Cases Case 1: Enter the number of vertexes: 4 Enter 1 if the vertex 1 is adjacent to 2, otherwise 0: 1 Enter 1 if the vertex 1 is adjacent to 3, ot...