Refactor naming scheme
This commit is contained in:
parent
c06bff4ab7
commit
35d9475033
5 changed files with 11 additions and 11 deletions
10
graph.py
10
graph.py
|
|
@ -1,10 +0,0 @@
|
|||
|
||||
def graph( segments ):
|
||||
graph = {}
|
||||
for start,end in segments:
|
||||
graph[start] = graph.get( start, [] )
|
||||
graph[start].append( end )
|
||||
graph[end] = graph.get( end, [] )
|
||||
graph[end].append( start )
|
||||
return graph
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue