

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 5
click for more info
Not enough gems
Cost: 6 gems
1: Graphs
incomplete
2: Graph Review
incomplete
3: Adjacency List
incomplete
4: Representing Graphs
incomplete
5: Adjacent Nodes
incomplete
6: Unconnected Vertices
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
In LockedIn, it's sad, but there are users who have zero connections.
Womp womp.
Your task is to find these unconnected vertices in the graph and return them as a list.
Complete the unconnected_vertices(self) method. It should return a list of vertices (integers) that have no connections. A vertex with no edges will have an empty set as its value in the self.graph dictionary.