Spaces:
Sleeping
Sleeping
Commit
·
0ea5424
1
Parent(s):
8d53dbe
cw2.py
CHANGED
@@ -132,8 +132,8 @@ def also_like_graph(data, doc_uuid, visitor_uuid, ascending):
|
|
132 |
# y.loc[len(y.index)] = [visitor_uuid, doc_uuid]
|
133 |
# print(y)
|
134 |
dot = graphviz.Digraph()
|
135 |
-
dot.node(visitor_uuid[-4:], visitor_uuid[-4:],
|
136 |
-
dot.edge(
|
137 |
for index, row in top_docs.iterrows():
|
138 |
dot.node(str(row[0]), str(row[0]))
|
139 |
dot.node(str(row[1]), str(row[1]))
|
|
|
132 |
# y.loc[len(y.index)] = [visitor_uuid, doc_uuid]
|
133 |
# print(y)
|
134 |
dot = graphviz.Digraph()
|
135 |
+
dot.node(visitor_uuid[-4:], visitor_uuid[-4:], fillcolor='green')
|
136 |
+
dot.edge(doc_uuid[-4:], doc_uuid[-4:], fillcolor='green')
|
137 |
for index, row in top_docs.iterrows():
|
138 |
dot.node(str(row[0]), str(row[0]))
|
139 |
dot.node(str(row[1]), str(row[1]))
|