def METHOD_NAME(node_slices, edge_list, max_nodes):
    source_indices_list_list = []
    target_indices_list_list = []
    removed_graphs = []
    for i, max_node_id in enumerate(node_slices[1:]):
        min_node_id = node_slices[i] 
        num_nodes = max_node_id - min_node_id
        if (num_nodes < max_nodes):
            edge = edge_list
            edges = edge_list[(edge_list[:,1] > min_node_id) & (edge_list[:,1] < max_node_id)]
            edges = edges -1 - min_node_id
            source_indices_list_list.append(edges[:,0])
            target_indices_list_list.append(edges[:,1])
        else:
            removed_graphs.append(i)
    return source_indices_list_list, target_indices_list_list, removed_graphs