Skip to content

[ENHANCEMENT-37] #43

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 50 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2187a63
lets add grpc web proxy
shashanksingh Jul 23, 2020
850a862
everyone gets their docker file
shashanksingh Jul 23, 2020
d8b01d9
fixed envoy file name
shashanksingh Jul 23, 2020
19ec468
proto
shashanksingh Jul 23, 2020
7cb2bd3
better graph db primites
shashanksingh Jul 23, 2020
419b833
trying to make a wokring call
shashanksingh Jul 23, 2020
1941bd7
fixes #26
shashanksingh Jul 24, 2020
ba5aeb8
used black
shashanksingh Jul 24, 2020
36dc47a
clients needs fix too
shashanksingh Jul 24, 2020
098d368
foxed make file §
shashanksingh Jul 24, 2020
037db3c
better to run it as module
shashanksingh Jul 24, 2020
662207e
emoji support
shashanksingh Jul 24, 2020
34bcb15
emoji are welcomed
shashanksingh Jul 24, 2020
824cee0
get emojis
shashanksingh Jul 24, 2020
01db725
small black fix
shashanksingh Jul 24, 2020
daf0996
fixed stub
shashanksingh Jul 24, 2020
896ca11
still trying to call server , but it gets called
shashanksingh Jul 24, 2020
5dc5cb0
fixed enum
shashanksingh Jul 24, 2020
f06f911
fixed enu name
shashanksingh Jul 24, 2020
1f8f051
more query service
shashanksingh Jul 24, 2020
4be51fd
service is being called
shashanksingh Jul 24, 2020
309dd23
ping ping works
shashanksingh Jul 24, 2020
cc8dc34
struggling with status
shashanksingh Jul 24, 2020
fe6379e
finally some form communicationis happening on client and server
shashanksingh Jul 24, 2020
97cc145
fixes
shashanksingh Jul 24, 2020
5dc369d
atleast some stuff is being called
shashanksingh Jul 24, 2020
d9626c0
fixing proto based on https://www.freecodecamp.org/news/googles-prot…
shashanksingh Jul 24, 2020
a0e1cff
create grid needs fix
shashanksingh Jul 24, 2020
c4b60a1
almost there §
shashanksingh Jul 24, 2020
1e5a157
fixng
shashanksingh Jul 24, 2020
3b467c4
added invlaid to enum
shashanksingh Jul 24, 2020
af5b995
almost there, cleaning up code
shashanksingh Jul 24, 2020
9fbbf8c
added abstractclass method
shashanksingh Jul 29, 2020
08bc001
no objects of abstract class
shashanksingh Aug 4, 2020
5ba602f
fixes #39
shashanksingh Aug 4, 2020
a7eb7ef
undircted also gets it
shashanksingh Aug 4, 2020
51a5b21
fied the strucutr e
shashanksingh Aug 4, 2020
ca03c5b
Update README.md
shashanksingh Jul 23, 2020
c93db41
Update README.md
shashanksingh Jul 23, 2020
f798d25
Update README.md
shashanksingh Jul 23, 2020
0a317ed
Update README.md
shashanksingh Jul 23, 2020
c5f8f35
Update README.md
shashanksingh Jul 23, 2020
b99d19d
Update README.md
shashanksingh Jul 23, 2020
78231ba
Update issue templates
shashanksingh Jul 30, 2020
15aa76d
[ENHANCEMENT-28] (#36)
shashanksingh Aug 4, 2020
490a9af
code
shashanksingh Aug 16, 2020
ab06d45
Merge branch 'master' into ENHANCEMENT-37
shashanksingh Aug 16, 2020
e3b7020
merge issues resolved
shashanksingh Aug 19, 2020
e79bbe1
fixed
shashanksingh Aug 19, 2020
1e0a7c7
adding tests
shashanksingh Aug 19, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions clients/examples/create_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,19 @@
stub = query_servicer_pb2_grpc.ToyGraphDBStub(channel)


# make the call
response = stub.ping(Empty())
print(response)
# # make the call
# response = stub.ping(Empty())
# print(response)

# https://www.freecodecamp.org/news/googles-protocol-buffers-in-python/
# convert sample grid to data
list_of_integer = List_of_integer()
first_item = list_of_integer.add()
first_item.data.append([1,2,3])

grid_data = List_of_list_of_integer(data=list_of_integer)
grid_request_object = grid(data=grid_data)
List_of_list_of_integer_data = List_of_list_of_integer()
for row in SAMPLE_GRID:
temp_data = List_of_integer(data=row)
List_of_list_of_integer_data.data.CopyFrom(temp_data)
grid_request_object = grid(data=List_of_list_of_integer_data)


request = ToyGraphDBRequest(
type=Type_of_graphs.GRID,
Expand Down
4 changes: 3 additions & 1 deletion src/dag.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ def __init__(self, number_of_nodes: int, edges: List[List[int]]):
# TODO : validation

def __hash__(self):
return hash(str(self.adjacency_list)+str(self.edge_list)+str(self.number_of_nodes))
return hash(
str(self.adjacency_list) + str(self.edge_list) + str(self.number_of_nodes)
)

def add_edge(self, from_edge: int, to_edge: int):
self.adjacency_list[from_edge].append(to_edge)
Expand Down
1 change: 1 addition & 0 deletions src/directed.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from typing import List, Set
from collections import defaultdict


class Directed(Graph):
def __init__(self, edges: List[List[int]]):
self.graph = defaultdict(set) # no duplicates
Expand Down
Loading