Perhaps you should have started earlier?
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.
So, your question will probably be rather more specific than that, but start with Google.
Wiki explains what an
Adjacency matrix[
^] is, but
Wolfram Alpha[
^] says :
"The adjacency matrix, sometimes also called the connection matrix, of a..."
So you need to look at your question in detail to work out what kind of transformation you should be applying. We can't code it for you (and since it's your homework wouldn't do so anyway!)
Try it yourself, you may find it is not as difficult as you think!