def remove_edge_and_delete_fifo_load(g, edge):
    """
    Removes edge from network and deletes the ``'load'`` attr from all nodes
    upstream of connection.

    :param g: directed graph of upstream network

    :param edge: edge to remove from network

    """
    g.remove_edge(*edge)
    nodes = [edge[0]]
    while nodes:
        for node in nodes:
            if 'load' in g.nodes[node]:
                del g.nodes[node]['load']
        nodes = list(set(edge[0] for edge in g.in_edges(nodes)))
