def get_line_thickness(weight):
    """
    Determine radius of cylinder based on weight of contact edge

    Parameters
    ----------
    weight: float
        Edge weight

    Return
    ------
    radius: float
        Radius of sphere
    """
    min_width = 0.01
    max_width = 0.5
    radius = float(weight)*max_width
    if radius < min_width:
        radius = min_width
    return radius