Search⌘ K

Challenge: Store a graph

Explore how to represent graphs by storing them as adjacency matrices and adjacency lists. This lesson helps you understand graph storage methods using a 6-vertex graph, preparing you to implement and manipulate graphs efficiently in your programming projects.

Here's the graph that we will use for the following two challenges.

widget

Challenge 1: Store an adjacency matrix

We've stored a graph, with ...