mirror of
https://github.com/UiO-Gaming/mustafa.git
synced 2026-11-05 13:56:48 +01:00
remove redundant divisor
This commit is contained in:
1 file changed
+1
-2
@@ -376,8 +376,7 @@ class UserFacts(commands.Cog):
|
||||
# Add nodes and edges to other users
|
||||
for other_user, other_mbti in others:
|
||||
other_index = self.mbti_list.index(other_mbti)
|
||||
|
||||
similarity = 1 / self.similarity_matrix[user_index, other_index]
|
||||
similarity = self.similarity_matrix[user_index, other_index]
|
||||
edge_length = 2 ** (4 - similarity)
|
||||
|
||||
graph.node(other_user.global_name, f"{other_user.global_name}\n{other_mbti}")
|
||||
|
||||
Reference in new issue
Block a user