Adjacency Matrix and Adjacency List of connected Graph

Suppose in a social media network:

N is friends with K, P, U, X
X is friends with N, A, B and C
U is friends with A, B and N
A is friends with P, U and X
B is friends with X and U
P is friends with K, N and A
K is friends with P, N and M
M is friends with C, N and K

Solve the following problems in c++
a. Write a function to print the adjacency matrix in 2D array and also you have to Draw the
final graph
b. Write a function to print the non connected friends list for everyone.
I solved question number (a) as per the requirement of the problem. I am not sure what the question number (b) is asking for.

Source: Windows Questions C++

LEAVE A COMMENT