def leaf_edges(network):
    """
    returns leaf edges of the "compas" network as a list 
    """ 
    leaf_ver_lis=network.leaves() 
    leaf_edg_lis=[]
    for key in leaf_ver_lis:
        edg=network.connected_edges(key) 
        leaf_edg_lis.append(edg[0])
    
    return leaf_edg_lis