2019-06-13 15:36:14 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< title > OR-Tools< / title >
< meta http-equiv = "Content-Type" content = "text/html;" / >
< meta charset = "utf-8" / >
<!-- <link rel='stylesheet' type='text/css' href="https://fonts.googleapis.com/css?family=Ubuntu:400,700,400italic"/> -->
2019-06-20 23:08:48 +02:00
< link rel = "stylesheet" type = "text/css" href = "ortools.css" title = "default" media = "screen,print" / >
2019-06-13 15:36:14 +02:00
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< / head >
< body >
< div id = "banner-container" >
< div id = "banner" >
2019-06-29 18:18:08 +02:00
< span id = "sfml" > OR-Tools 7.2< / span >
2019-06-13 15:36:14 +02:00
< / div >
< / div >
2019-06-29 18:18:08 +02:00
< link rel = "icon" href = "https://developers.google.com/optimization/images/orLogo.png" >
2019-06-13 15:36:14 +02:00
< div id = "content" >
<!-- Generated by Doxygen 1.8.15 -->
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "pages.html" > < span > Related  Pages< / span > < / a > < / li >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
< li class = "current" > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< / ul >
< / div >
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "files.html" > < span > File  List< / span > < / a > < / li >
< li > < a href = "globals.html" > < span > File  Members< / span > < / a > < / li >
< / ul >
< / div >
< div id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "dir_a7cc1eeded8f693d0da6c729bc88c45a.html" > ortools< / a > < / li > < li class = "navelem" > < a class = "el" href = "dir_725f3a5915051842f84e3ea508be2a62.html" > graph< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#nested-classes" > Classes< / a > |
< a href = "#namespaces" > Namespaces< / a > |
< a href = "#func-members" > Functions< / a > < / div >
< div class = "headertitle" >
< div class = "title" > connected_components.h File Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< div class = "textblock" > < code > #include < functional> < / code > < br / >
< code > #include < map> < / code > < br / >
< code > #include < memory> < / code > < br / >
< code > #include < set> < / code > < br / >
< code > #include < type_traits> < / code > < br / >
< code > #include < vector> < / code > < br / >
< code > #include " absl/container/flat_hash_map.h" < / code > < br / >
< code > #include " absl/container/flat_hash_set.h" < / code > < br / >
< code > #include " absl/hash/hash.h" < / code > < br / >
< code > #include " absl/meta/type_traits.h" < / code > < br / >
< code > #include " ortools/base/logging.h" < / code > < br / >
< code > #include " ortools/base/map_util.h" < / code > < br / >
< code > #include " ortools/base/ptr_util.h" < / code > < br / >
< / div > < div class = "textblock" > < div class = "dynheader" >
Include dependency graph for connected_components.h:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "connected__components_8h__incl.png" border = "0" usemap = "#connected__components_8h" alt = "" / > < / div >
< map name = "connected__components_8h" id = "connected__components_8h" >
2019-06-13 15:51:12 +02:00
< area shape = "rect" title = " " alt = "" coords = "651,5,825,31" / >
2019-06-13 15:36:14 +02:00
< area shape = "rect" title = " " alt = "" coords = "5,85,84,111" / >
< area shape = "rect" title = " " alt = "" coords = "108,85,155,111" / >
< area shape = "rect" title = " " alt = "" coords = "179,85,249,111" / >
< area shape = "rect" title = " " alt = "" coords = "273,85,312,111" / >
< area shape = "rect" title = " " alt = "" coords = "336,85,419,111" / >
< area shape = "rect" title = " " alt = "" coords = "444,85,501,111" / >
< area shape = "rect" title = " " alt = "" coords = "526,79,651,117" / >
< area shape = "rect" title = " " alt = "" coords = "675,79,801,117" / >
< area shape = "rect" title = " " alt = "" coords = "825,85,947,111" / >
< area shape = "rect" title = " " alt = "" coords = "971,85,1126,111" / >
< area shape = "rect" title = " " alt = "" coords = "1150,85,1302,111" / >
< area shape = "rect" title = " " alt = "" coords = "1326,85,1485,111" / >
2019-06-13 15:51:12 +02:00
< area shape = "rect" title = " " alt = "" coords = "1509,85,1561,111" / >
< area shape = "rect" title = " " alt = "" coords = "1585,85,1734,111" / >
< area shape = "rect" title = " " alt = "" coords = "1757,85,1820,111" / >
2019-06-13 15:36:14 +02:00
< / map >
< / div >
< / div > < div class = "textblock" > < div class = "dynheader" >
This graph shows which files directly or indirectly include this file:< / div >
< div class = "dyncontent" >
< div class = "center" > < img src = "connected__components_8h__dep__incl.png" border = "0" usemap = "#connected__components_8hdep" alt = "" / > < / div >
< map name = "connected__components_8hdep" id = "connected__components_8hdep" >
< area shape = "rect" title = " " alt = "" coords = "5,5,179,31" / >
< area shape = "rect" href = "util_8h.html" title = " " alt = "" coords = "68,79,117,104" / >
< / map >
< / div >
< / div >
< p > < a href = "connected__components_8h_source.html" > Go to the source code of this file.< / a > < / p >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "nested-classes" > < / a >
Classes< / h2 > < / td > < / tr >
< tr class = "memitem:" > < td class = "memItemLeft" align = "right" valign = "top" > class   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classDenseConnectedComponentsFinder.html" > DenseConnectedComponentsFinder< / a > < / td > < / tr >
< tr class = "memdesc:" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > NOTE(user): The rest of the functions below should also be in namespace util, but for historical reasons it hasn't been done yet. < a href = "classDenseConnectedComponentsFinder.html#details" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:" > < td class = "memItemLeft" align = "right" valign = "top" > class   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classConnectedComponentsFinder.html" > ConnectedComponentsFinder< T, CompareOrHashT > < / a > < / td > < / tr >
< tr class = "memdesc:" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Usage: ConnectedComponentsFinder< MyNodeType> cc; cc.AddNode(node1); cc.AddNode(node2); cc.AddEdge(node1, node2); ... < a href = "classConnectedComponentsFinder.html#details" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "namespaces" > < / a >
Namespaces< / h2 > < / td > < / tr >
< tr class = "memitem:namespaceutil" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceutil.html" > util< / a > < / td > < / tr >
< tr class = "memdesc:namespaceutil" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. < br / > < / td > < / tr >
< tr class = "separator:" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "func-members" > < / a >
Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a13f0e8f7e15873600cf8e395958c71e1" > < td class = "memTemplParams" colspan = "2" > template< class UndirectedGraph > < / td > < / tr >
< tr class = "memitem:a13f0e8f7e15873600cf8e395958c71e1" > < td class = "memTemplItemLeft" align = "right" valign = "top" > std::vector< int >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "namespaceutil.html#a13f0e8f7e15873600cf8e395958c71e1" > util::GetConnectedComponents< / a > (int num_nodes, const UndirectedGraph & graph)< / td > < / tr >
< tr class = "memdesc:a13f0e8f7e15873600cf8e395958c71e1" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Finds the connected components of the graph, using BFS internally. < a href = "namespaceutil.html#a13f0e8f7e15873600cf8e395958c71e1" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a13f0e8f7e15873600cf8e395958c71e1" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
< / div > <!-- contents -->
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
< / html >