Chapter 29 - Graph Implementations
True/False (10)
1. An undirected graph is symmetric.
2. In a graph represented by an adjacency matrix, you cannot use boolean values for an
unweighted graph.
3. An adjacency matrix occupies a fixed amount of space dependent on the number of edges in the
graph.
4. In an adjacency list, space is not reserved for edges that do not exist.
5. An adjacency matrix uses less memory than an adjacency list.
6. For a dense graph, using an adjacency matrix to represent the graph is a better choice.
7. Regardless of how you implement a graph, you need a container such as a dictionary for the
graph’s vertices.
8. Using an adjacency list, you need to search the entire list to determine if an edge exists between
any two given vertices.
9. An adjacency matrix uses less space for a sparse graph than an adjacency list.
10. Using an adjacency matrix, you can use an edge weight of infinity to represent that there is no
edge between any two given vertices.
Short Answer (5)
1. Fill in the adjacency matrix for the following graph.