|
|
@ -231,7 +231,7 @@ class PlaceUnplacedVertices(StyleAnnotator):
|
|
|
|
|
|
|
|
|
|
|
|
def _default_width_for_cost(cost):
|
|
|
|
def _default_width_for_cost(cost):
|
|
|
|
# Maybe use exponential decay?
|
|
|
|
# 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)
|
|
|
|
# As thin as possible for no-weight edges (e.g. network → router)
|
|
|
|
return 0
|
|
|
|
return 0
|
|
|
|
class EdgeWidthByCost(StyleAnnotator):
|
|
|
|
class EdgeWidthByCost(StyleAnnotator):
|
|
|
|