def remove_nodes(max_nodes):
    """
    Deletes given max nodes
    :param max_nodes: list<MaxPlus.INode>
    """
    if type(max_nodes) not in [list, tuple]:
        max_nodes = [max_nodes]
    for obj in max_nodes:
        obj.Delete()
