×

## Graphs

Whether you're finding the shortest path between two locations or modeling a social network, graphs are are a critical tool for storing data and exploring connections.

# Graph Fundamentals

For which of the following scenarios would a DAG (Directed acyclic graph) data structure be most appropriate?

Match the following graph with its corresponding adjacency matrix:

graph

A

a

B

b

C

c

D

d

Consider traversing the graph below using a depth-first search, beginning with vertex $$1$$. Which of the choices below lists vertices in the order they are visited in such a depth-first search traversal?

graph

Consider traversing the graph below using breadth-first search, beginning with vertex $$1$$. Which of the choices below lists vertices in the order they are visited in a breadth-first search traversal?

graph

Which of the following choices describes the graph below?

image

×