def remove_irrelevant_terms(graph, irrelevant_terms):
    """
    This will prune out irrelevant terms and return a copy of the graph without those nodes
    
    Args:
        graph: Networkx object
        irrelevant_terms: Iterable giving irrelevant terms. Usually ConstantsAndUtilities.Ignore.iterable
    
    Returns:
        Pruned graph
    """
    graph.remove_nodes_from(irrelevant_terms)
    return graph