Files
2024-05-22 17:27:37 +02:00

1.1 KiB

id, title, challengeType, dashedName
id title challengeType dashedName
6579dd49fa8a8e1fd06b85a9 Step 15 20 step-15

--description--

Graphs are data structures representing relations between pairs of elements. These elements, called nodes, can be real-life objects, entities, points in space or others. The connections between the nodes are called the edges.

Here's a visual representation of a graph:

a weighted graph with 6 nodes

Rename the copper dictionary into my_graph. This will represent the graph to test your algorithm.

--hints--

You should rename your copper dictionary into my_graph.

({ test: () => assert(__userGlobals.has("my_graph")) })

Your my_graph variable should be a dictionary.

({ test: () => assert(runPython(`
    type(my_graph) is dict 
  `))
})

--seed--

--seed-contents--

--fcc-editable-region--
copper = {
    'species': 'guinea pig',
    'age': 2
}
--fcc-editable-region--