How to implement a complement graph which is given with adjacency matrix (literally any graph)?
I am wondering how to make a code of that graph, but I am not sure how to complete it.
I usually use pseudocode for these "early" implementations. This is what I have come up so far, it is just the beginning of the code. I know how to draw the complement graph, I know it's definitions, but I struggle with finishing it with the code.
Complement (G,s)
int Arr[1...size(V)]
queue Q
for i=1 to size(V)
Arr[i]=0