Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
system-design-primer
Commits
e116bd75
Commit
e116bd75
authored
Jul 15, 2018
by
cclauss
Committed by
Donne Martin
Jul 14, 2018
Browse files
Fix #148: Add State(Enum) to social_graph_snippets.py (#167)
parent
9069993c
Changes
1
Hide whitespace changes
Inline
Side-by-side
solutions/system_design/social_graph/social_graph_snippets.py
View file @
e116bd75
# -*- coding: utf-8 -*-
# -*- coding: utf-8 -*-
from
collections
import
deque
from
collections
import
deque
from
enum
import
Enum
class
State
(
Enum
):
unvisited
=
0
visited
=
1
class
Graph
(
object
):
class
Graph
(
object
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment