The bliss C++ API
utils.hh
Go to the documentation of this file.
1 #pragma once
2 
3 /*
4  Copyright (c) 2003-2021 Tommi Junttila
5  Released under the GNU Lesser General Public License version 3.
6 
7  This file is part of bliss.
8 
9  bliss is free software: you can redistribute it and/or modify
10  it under the terms of the GNU Lesser General Public License as published by
11  the Free Software Foundation, version 3 of the License.
12 
13  bliss is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU Lesser General Public License for more details.
17 
18  You should have received a copy of the GNU Lesser General Public License
19  along with bliss. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
27 #include <vector>
28 #include <cstdio>
29 
30 namespace bliss {
31 
38 size_t print_permutation(FILE* fp,
39  const unsigned int N,
40  const unsigned int* perm,
41  const unsigned int offset = 0);
42 
49 size_t print_permutation(FILE* fp,
50  const std::vector<unsigned int>& perm,
51  const unsigned int offset = 0);
52 
57 bool is_permutation(const unsigned int N, const unsigned int* perm);
58 
63 bool is_permutation(const std::vector<unsigned int>& perm);
64 
65 } // namespace bliss
Definition: abstractgraph.cc:35
size_t print_permutation(FILE *const fp, const unsigned int N, const unsigned int *perm, const unsigned int offset)
Definition: utils.cc:27
bool is_permutation(const unsigned int N, const unsigned int *perm)
Definition: utils.cc:77