8 lines
132 B
Python
8 lines
132 B
Python
![]() |
class SimpleGraph:
|
||
|
def __init__(self):
|
||
|
self.edges = {}
|
||
|
|
||
|
def neighbors(self, id):
|
||
|
return self.edges[id]
|
||
|
|