From 4b4588cae31ba37ea914e5b1e5f4e9d3cb021d4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Y=C3=B3un=C7=8Ei?= Date: Fri, 3 Nov 2023 02:18:02 +0300 Subject: [PATCH] FixFor: broken `arrowhead` for pairs (#23) sorry, `splines` is not `curve` (sexy) anymore --- kmua/common/waifu.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kmua/common/waifu.py b/kmua/common/waifu.py index ffe2edb..7b82aa7 100644 --- a/kmua/common/waifu.py +++ b/kmua/common/waifu.py @@ -115,6 +115,7 @@ def render_waifu_graph( "beautify": "true", "compound": "true", "ranksep": "1", + "splines": "ortho", }, format="webp", ) @@ -158,8 +159,8 @@ def render_waifu_graph( for user_id, waifu_id in relationships: dot.edge( str(user_id), str(waifu_id), - lhead=f"cluster_{waifu_id}" if waifu_id in has_avatar else None, - ltail=f"cluster_{user_id}" if user_id in has_avatar else None + lhead=f"cluster_{waifu_id}" if waifu_id in has_avatar else "", + ltail=f"cluster_{user_id}" if user_id in has_avatar else "", ) return dot.pipe()