From e962ec9cdb899cc955c1242be04da5fcc2088bbc Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Thu, 20 Jul 2023 08:24:37 +0200 Subject: [PATCH] tweak edge-based width --- birdvisu/annotations/layout.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/birdvisu/annotations/layout.py b/birdvisu/annotations/layout.py index 5450f31..8e4cae1 100644 --- a/birdvisu/annotations/layout.py +++ b/birdvisu/annotations/layout.py @@ -231,7 +231,7 @@ class PlaceUnplacedVertices(StyleAnnotator): def _default_width_for_cost(cost): # Maybe use exponential decay? - if cost > 0: return 100/cost + if cost > 0: return 20/cost # As thin as possible for no-weight edges (e.g. network → router) return 0 class EdgeWidthByCost(StyleAnnotator):