def pipeline_link_color(plug, link):
    """
    Link color and style for graphical display and graphviz graphs.

    Parameters
    ----------
    plug: Plug
        the plug the link belong to
    link: link tuple (5 values)
        link to color

    Returns
    -------
    link_props: tuple
        (color, style, active, weak) where color is a RGB tuple of float values
        (between 0. and 1.), style is a string ("solid", "dotted"), active and
        weak are booleans.
    """
    GRAY_1 = 0.7, 0.7, 0.8
    RED_2 = 0.92, 0.51, 0.12
    active = plug.activated and link[3].activated
    if active:
        color = RED_2
    else:
        color = GRAY_1
    weak = link[4]
    if weak:
        style = 'dotted'
    else:
        style = 'solid'
    return color, style, active, weak
