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 >
< / 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 > <!-- top -->
2019-07-12 13:25:23 -07:00
< div id = "side-nav" class = "ui-resizable side-nav-resizable" >
< div id = "nav-tree" >
< div id = "nav-tree-contents" >
< div id = "nav-sync" class = "sync" > < / div >
< / div >
< / div >
< div id = "splitbar" style = "-moz-user-select:none;"
class="ui-resizable-handle">
< / div >
< / div >
< script type = "text/javascript" >
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3& dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('connected__components_8h.html','');});
/* @license-end */
< / script >
< div id = "doc-content" >
2019-06-13 15:36:14 +02:00
< 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 >
< 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 -->
2019-07-12 13:25:23 -07:00
< / div > <!-- doc - content -->
2019-06-13 15:36:14 +02:00
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
< / html >