Skip to content

Commit

Permalink
Add State(Enum) to social_graph_snippets.py
Browse files Browse the repository at this point in the history
* Fixes donnemartin#148
* Enables donnemartin#93
* Replaces donnemartin#162
  • Loading branch information
cclauss authored Jul 13, 2018
1 parent 9069993 commit b646b87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions solutions/system_design/social_graph/social_graph_snippets.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# -*- coding: utf-8 -*-
from collections import deque
from enum import Enum


class State(Enum):
unvisited = 0
visited = 1


class Graph(object):
Expand Down

0 comments on commit b646b87

Please sign in to comment.