Skip to content

Commit

Permalink
Change license to MIT
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSeemaier committed Jul 26, 2022
1 parent adb3727 commit aad4e06
Show file tree
Hide file tree
Showing 34 changed files with 24 additions and 1,323 deletions.
674 changes: 4 additions & 670 deletions LICENSE

Large diffs are not rendered by default.

21 changes: 1 addition & 20 deletions kaminpar/algorithm/extract_subgraphs.cc
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*******************************************************************************
* This file is part of KaMinPar.
*
* Copyright (C) 2021 Daniel Seemaier <[email protected]>
*
* KaMinPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaMinPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaMinPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#include "algorithm/extract_subgraphs.h"

#include "datastructure/graph.h"
Expand Down Expand Up @@ -250,4 +231,4 @@ SubgraphExtractionResult extract_subgraphs(const PartitionedGraph &p_graph, Subg

return {std::move(subgraphs), std::move(mapping), std::move(start_positions)};
}
} // namespace kaminpar::graph
} // namespace kaminpar::graph
21 changes: 1 addition & 20 deletions kaminpar/algorithm/extract_subgraphs.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*******************************************************************************
* This file is part of KaMinPar.
*
* Copyright (C) 2021 Daniel Seemaier <[email protected]>
*
* KaMinPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaMinPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaMinPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
/** @file */
#pragma once

Expand Down Expand Up @@ -119,4 +100,4 @@ SequentialSubgraphExtractionResult extract_subgraphs_sequential(const Partitione
SubgraphMemoryStartPosition memory_position,
SubgraphMemory &subgraph_memory,
TemporarySubgraphMemory &tmp_subgraph_memory);
} // namespace kaminpar::graph
} // namespace kaminpar::graph
21 changes: 1 addition & 20 deletions kaminpar/algorithm/graph_contraction.cc
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*******************************************************************************
* This file is part of KaMinPar.
*
* Copyright (C) 2021 Daniel Seemaier <[email protected]>
*
* KaMinPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaMinPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaMinPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#include "algorithm/graph_contraction.h"

#include "datastructure/rating_map.h"
Expand Down Expand Up @@ -223,4 +204,4 @@ ContractionResult contract(const Graph &graph, const scalable_vector<NodeID> &cl
std::move(mapping), std::move(m_ctx)};
}

} // namespace kaminpar::graph
} // namespace kaminpar::graph
21 changes: 1 addition & 20 deletions kaminpar/algorithm/graph_contraction.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*******************************************************************************
* This file is part of KaMinPar.
*
* Copyright (C) 2021 Daniel Seemaier <[email protected]>
*
* KaMinPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaMinPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaMinPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#pragma once

#include "datastructure/graph.h"
Expand Down Expand Up @@ -85,4 +66,4 @@ struct ContractionResult {

ContractionResult contract(const Graph &r, const scalable_vector<NodeID> &clustering,
ContractionMemoryContext m_ctx = {});
} // namespace kaminpar::graph
} // namespace kaminpar::graph
19 changes: 0 additions & 19 deletions kaminpar/algorithm/graph_utils.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*******************************************************************************
* This file is part of KaMinPar.
*
* Copyright (C) 2021 Daniel Seemaier <[email protected]>
*
* KaMinPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaMinPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaMinPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
/** @file */
#pragma once

Expand Down
19 changes: 0 additions & 19 deletions kaminpar/algorithm/parallel_label_propagation.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*******************************************************************************
* This file is part of KaMinPar.
*
* Copyright (C) 2021 Daniel Seemaier <[email protected]>
*
* KaMinPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaMinPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaMinPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#pragma once

#include "datastructure/rating_map.h"
Expand Down
21 changes: 1 addition & 20 deletions kaminpar/application/arguments.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*******************************************************************************
* This file is part of KaMinPar.
*
* Copyright (C) 2021 Daniel Seemaier <[email protected]>
*
* KaMinPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaMinPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaMinPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#pragma once

#include "kaminpar/application/arguments_parser.h"
Expand Down Expand Up @@ -184,4 +165,4 @@ Context parse_options(int argc, char *argv[]) {
arguments.parse(argc, argv);
return context;
}
} // namespace kaminpar::app
} // namespace kaminpar::app
22 changes: 1 addition & 21 deletions kaminpar/datastructure/fixed_size_sparse_map.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
/*******************************************************************************
* This file is part of KaHyPar.
*
* Copyright (C) 2019 Tobias Heuer <[email protected]>
* Copyright (C) 2016 Sebastian Schlag <[email protected]>
*
* KaHyPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaHyPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaHyPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
/*
* Sparse map based on sparse set representation of
* Briggs, Preston, and Linda Torczon. "An efficient representation for sparse sets."
Expand Down Expand Up @@ -164,4 +144,4 @@ class FixedSizeSparseMap {
SparseElement *_sparse;
Element *_dense;
};
} // namespace kaminpar
} // namespace kaminpar
21 changes: 1 addition & 20 deletions kaminpar/datastructure/rating_map.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*******************************************************************************
* This file is part of KaMinPar.
*
* Copyright (C) 2021 Daniel Seemaier <[email protected]>
*
* KaMinPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaMinPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaMinPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#pragma once

#include "datastructure/fast_reset_array.h"
Expand Down Expand Up @@ -79,4 +60,4 @@ class RatingMap {
std::size_t _super_small_map_counter{0};
std::size_t _large_map_counter{0};
};
} // namespace kaminpar
} // namespace kaminpar
22 changes: 1 addition & 21 deletions kaminpar/datastructure/sparse_map.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
/*******************************************************************************
* This file is part of KaHyPar.
*
* Copyright (C) 2019 Tobias Heuer <[email protected]>
* Copyright (C) 2016 Sebastian Schlag <[email protected]>
*
* KaHyPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaHyPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaHyPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
/*
* Sparse map based on sparse set representation of
* Briggs, Preston, and Linda Torczon. "An efficient representation for sparse sets."
Expand Down Expand Up @@ -111,4 +91,4 @@ class SparseMap {
std::size_t *_sparse{nullptr};
Element *_dense{nullptr};
};
}
}
20 changes: 0 additions & 20 deletions kaminpar/initial_partitioning/initial_coarsener.cc
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
/*******************************************************************************
* This file is part of KaMinPar.
*
* Copyright (C) 2020 Daniel Seemaier <[email protected]>
*
* KaMinPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaMinPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaMinPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/

#include "initial_partitioning/initial_coarsener.h"

#include "utility/timer.h"
Expand Down
22 changes: 1 addition & 21 deletions kaminpar/initial_partitioning/initial_coarsener.h
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
/*******************************************************************************
* This file is part of KaMinPar.
*
* Copyright (C) 2020 Daniel Seemaier <[email protected]>
*
* KaMinPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaMinPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaMinPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/

#pragma once

#include "context.h"
Expand Down Expand Up @@ -178,4 +158,4 @@ class InitialCoarsener {
Randomize &_rand{Randomize::instance()};
static RandomPermutations<NodeID, kChunkSize, kNumberOfNodePermutations> _random_permutations;
};
} // namespace kaminpar::ip
} // namespace kaminpar::ip
21 changes: 1 addition & 20 deletions kaminpar/initial_partitioning/initial_partitioning_facade.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*******************************************************************************
* This file is part of KaMinPar.
*
* Copyright (C) 2021 Daniel Seemaier <[email protected]>
*
* KaMinPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaMinPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaMinPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#pragma once

#include "initial_partitioning/initial_coarsener.h"
Expand Down Expand Up @@ -140,4 +121,4 @@ class InitialPartitioner {
BlockID _final_k2;
std::size_t _num_bipartition_repetitions;
};
} // namespace kaminpar::ip
} // namespace kaminpar::ip
19 changes: 0 additions & 19 deletions kaminpar/initial_partitioning/initial_refiner.h
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
/*******************************************************************************
* This file is part of KaMinPar.
*
* Copyright (C) 2020 Daniel Seemaier <[email protected]>
*
* KaMinPar is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* KaMinPar is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with KaMinPar. If not, see <http://www.gnu.org/licenses/>.
*
******************************************************************************/
#pragma once

#include "context.h"
Expand Down
Loading

0 comments on commit aad4e06

Please sign in to comment.