def edge_match(graph_edges, subgraph_edges):
    """
    Make sure the two edge sets match in terms of edge labels.
    """

    subgraph_edge_labels = [edge.label for edge in subgraph_edges]

    for graph_edge in graph_edges:
        if graph_edge.label in subgraph_edge_labels:
            subgraph_edge_labels.remove(graph_edge.label)
        else:
            return False

    return True