def is_subgraph(G1, G2):
    """
    Is G1 a subgraph of G2?
    :param G1: supposed subgraph
    :param G2: graph
    :return: is G1 subgraph of G2
    """
    return set(G1.edges()).issubset(set(G2.edges()))