def update_edge_attrs(graph, s, t, attrs, normalize=True):
    """Update attributes of an edge.

    Parameters
    ----------
    graph : regraph.Graph
    s : hashable, source node id.
    t : hashable, target node id.
    attrs : dict
        New attributes to assign to the edge

    Raises
    ------
    GraphError
        If an edge between `s` and `t` does not exist.
    """
    graph.update_edge_attrs(s, t, attrs, normalize=normalize)
