Adjacency Lists
In this assessment, you will implement the areTheyConnected function to search a graph using its adjacency list to determine if one node is “connected” to another. For example, consider the following adjacency list: const adjacencyList = { ‘carrie’: [‘humza’, ‘jun’], ‘farrah’: [‘humza’], ‘humza’: [‘carrie’, ‘farrah’, ‘jun’, ‘silla’], ‘jun’: [‘carrie’, ‘silla’], ‘ophelia’: [‘travis’], ‘silla’: [‘humza’, […]
