Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
graph_util.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file core/graph/Graph.hh
11 /// @brief generic graph class header
12 /// @author Andrew Leaver-Fay (aleaverfay@gmail.com)
13 
14 #ifndef INCLUDED_core_graph_graph_util_hh
15 #define INCLUDED_core_graph_graph_util_hh
16 
17 // Package Headers
18 // AUTO-REMOVED #include <core/graph/Graph.hh>
19 // AUTO-REMOVED #include <platform/types.hh>
20 
21 // Utility Headers
22 // AUTO-REMOVED #include <utility/vector1.hh>
23 
24 #include <core/graph/Graph.fwd.hh>
25 #include <utility/vector1_bool.hh>
26 
27 
28 // C++ headers
29 //#include <utility> // for std::pair?
30 
31 namespace core {
32 namespace graph {
33 
34 /// @brief returns a vector1 of connected component descriptions:
35 /// each entry holds the connected-component size
36 /// and a representative vertex from that connected component.
37 /// O( V+E ).
39 find_connected_components( Graph const & g );
40 
41 void
43  Graph & g,
44  utility::vector1< platform::Size > const & node_groups
45 );
46 
47 }
48 }
49 
50 #endif