In the instructions for this lab the following appears:
For example, given the adjacency list:
{
0: [1, 2],
1: [2],
2: [0, 3],
3: [2]
}
Is this a valid adjacency list? It appears to me to be saying
- node 0 is linked to node 1 and node 2
- node 1 is linked to node 2 – no mention of node 0
- node 2 is linked to node 0 and node 3 – no mention of node 1
- node 3 is linked to node 2
Please advise