The CyMeAlg Software (Release 0.01)
transpose.h
Go to the documentation of this file.
1 /// @addtogroup cymealg
2 /// @{
3 
4 /////////////////////////////////////////////////////////////////////////////
5 ///
6 /// @file
7 ///
8 /// This header file contains a procedure for computing the transpose graph.
9 ///
10 /// @author Pawel Pilarczyk
11 ///
12 /////////////////////////////////////////////////////////////////////////////
13 
14 // Copyright (C) 1997-2020 by Pawel Pilarczyk.
15 //
16 // This file is part of my research software. This is free software:
17 // you can redistribute it and/or modify it under the terms of the GNU
18 // General Public License as published by the Free Software Foundation,
19 // either version 3 of the License, or (at your option) any later version.
20 //
21 // This software is distributed in the hope that it will be useful,
22 // but WITHOUT ANY WARRANTY; without even the implied warranty of
23 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 // GNU General Public License for more details.
25 //
26 // You should have received a copy of the GNU General Public License
27 // along with this software; see the file "license.txt". If not,
28 // please, see <http://www.gnu.org/licenses/>.
29 
30 // Started in January 2006. Last revision: August 23, 2019.
31 
32 
33 #ifndef _CYMEALG_TRANSPOSE_H_
34 #define _CYMEALG_TRANSPOSE_H_
35 
36 // include selected header files from the CHomP library
37 #include "chomp/system/config.h"
38 
39 namespace cymealg {
40 
41 /// Creates a transposed graph.
42 template <class Graph1, class Graph2>
43 inline void transpose (const Graph1 &g, Graph2 &result,
44  bool copyweights = false)
45 {
46  g. transpose (result, copyweights);
47  return;
48 } /* transpose */
49 
50 
51 } // namespace cymealg
52 
53 #endif // _CYMEALG_TRANSPOSE_H_
54 
55 /// @}
56 
void transpose(const Graph1 &g, Graph2 &result, bool copyweights=false)
Creates a transposed graph.
Definition: transpose.h:43