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" >
2020-01-27 13:48:26 +01:00
< span id = "sfml" > Google OR-Tools 7.5< / span >
2019-06-13 15:36:14 +02:00
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< div id = "content" style = "width: 100%; overflow: hidden;" >
< div style = "margin-left: 15px; margin-top: 5px; float: left; color: #145A32;" >
2019-08-12 09:16:03 -07:00
< h2 > C++ Reference< / h2 >
2019-08-07 18:01:08 -07:00
< ul >
< li > < a href = "../cpp_algorithms/annotated.html" > Algorithms< / a > < / li >
2019-08-12 09:16:03 -07:00
< li > < a href = "../cpp_sat/annotated.html" > CP-SAT< / a > < / li >
2019-08-07 18:01:08 -07:00
< li > < a href = "../cpp_graph/annotated.html" > Graph< / a > < / li >
< li > < a href = "../cpp_routing/annotated.html" > Routing< / a > < / li >
< li > < a href = "../cpp_linear/annotated.html" > Linear solver< / a > < / li >
< / ul >
< / div >
2019-06-13 15:36:14 +02:00
< div id = "content" >
2019-08-07 18:01:08 -07:00
< div align = "center" >
< h1 style = "color: #145A32;" > C++ Reference: Graph< / h1 >
< / div >
2020-04-23 15:34:43 +02:00
<!-- Generated by Doxygen 1.8.16 -->
2019-06-13 15:36:14 +02:00
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li class = "current" > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
2019-07-15 17:42:24 -07:00
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
2019-06-13 15:36:14 +02:00
< / ul >
< / div >
2019-08-07 18:01:08 -07:00
< div id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "namespaceoperations__research.html" > operations_research< / a > < / li > < li class = "navelem" > < a class = "el" href = "classoperations__research_1_1ConnectedComponents.html" > ConnectedComponents< / a > < / li > < / ul >
2019-06-13 15:36:14 +02:00
< / div >
2019-08-07 18:01:08 -07:00
< / div > <!-- top -->
2019-06-13 15:36:14 +02:00
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classoperations__research_1_1ConnectedComponents-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
2019-08-07 18:01:08 -07:00
< div class = "title" > ConnectedComponents< NodeIndex, ArcIndex > < / div > < / div >
2019-06-13 15:36:14 +02:00
< / div > <!-- header -->
< div class = "contents" >
2019-08-12 23:15:11 -07:00
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < h3 > template< typename NodeIndex, typename ArcIndex> < br / >
class operations_research::ConnectedComponents< NodeIndex, ArcIndex > < / h3 >
2019-08-07 18:01:08 -07:00
2019-08-12 23:15:11 -07:00
< p class = "definition" > Definition at line < a class = "el" href = "connectivity_8h_source.html#l00067" > 67< / a > of file < a class = "el" href = "connectivity_8h_source.html" > connectivity.h< / a > .< / p >
< / div > < table class = "memberdecls" >
2019-08-07 18:01:08 -07:00
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
< tr class = "memitem:a04bf0bd47cf349309302338120f12465" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1ConnectedComponents.html#a04bf0bd47cf349309302338120f12465" > ConnectedComponents< / a > ()< / td > < / tr >
< tr class = "separator:a04bf0bd47cf349309302338120f12465" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a8247e505912b0c7d2309f3f9eaa74080" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1ConnectedComponents.html#a8247e505912b0c7d2309f3f9eaa74080" > Init< / a > (< a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a > num_nodes)< / td > < / tr >
< tr class = "separator:a8247e505912b0c7d2309f3f9eaa74080" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a07ef59a345df6bddab386c943af4238c" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1ConnectedComponents.html#a07ef59a345df6bddab386c943af4238c" > AddArc< / a > (< a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a > tail, < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a > head)< / td > < / tr >
< tr class = "separator:a07ef59a345df6bddab386c943af4238c" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a0f653082d74e1d7e9d8e97be437ba036" > < td class = "memTemplParams" colspan = "2" > template< typename Graph > < / td > < / tr >
< tr class = "memitem:a0f653082d74e1d7e9d8e97be437ba036" > < td class = "memTemplItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1ConnectedComponents.html#a0f653082d74e1d7e9d8e97be437ba036" > AddGraph< / a > (const Graph & graph)< / td > < / tr >
< tr class = "separator:a0f653082d74e1d7e9d8e97be437ba036" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aeaa04a98ce83a11cc8260f15b7ceb6ce" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1ConnectedComponents.html#aeaa04a98ce83a11cc8260f15b7ceb6ce" > CompressPath< / a > (< a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a > node)< / td > < / tr >
< tr class = "separator:aeaa04a98ce83a11cc8260f15b7ceb6ce" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a874a54f45623ba735a5634b1ea9289ea" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1ConnectedComponents.html#a874a54f45623ba735a5634b1ea9289ea" > GetClassRepresentative< / a > (< a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a > node)< / td > < / tr >
< tr class = "separator:a874a54f45623ba735a5634b1ea9289ea" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ad93186658fbb95624b55f85af74f8ea5" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1ConnectedComponents.html#ad93186658fbb95624b55f85af74f8ea5" > GetNumberOfConnectedComponents< / a > ()< / td > < / tr >
< tr class = "separator:ad93186658fbb95624b55f85af74f8ea5" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a047f863116aabfa88d8eeeebda5de760" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classoperations__research_1_1ConnectedComponents.html#a047f863116aabfa88d8eeeebda5de760" > MergeClasses< / a > (< a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a > node1, < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a > node2)< / td > < / tr >
< tr class = "separator:a047f863116aabfa88d8eeeebda5de760" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table >
2019-08-12 23:15:11 -07:00
< h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2019-08-07 18:01:08 -07:00
< a id = "a04bf0bd47cf349309302338120f12465" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a04bf0bd47cf349309302338120f12465" > ◆ < / a > < / span > ConnectedComponents()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > < a class = "el" href = "classoperations__research_1_1ConnectedComponents.html" > ConnectedComponents< / a > < / td >
2019-06-13 15:36:14 +02:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "connectivity_8h_source.html#l00069" > 69< / a > of file < a class = "el" href = "connectivity_8h_source.html" > connectivity.h< / a > .< / p >
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
2019-08-07 18:01:08 -07:00
< a id = "a07ef59a345df6bddab386c943af4238c" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a07ef59a345df6bddab386c943af4238c" > ◆ < / a > < / span > AddArc()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > void AddArc < / td >
2019-06-13 15:36:14 +02:00
< td > (< / td >
2019-08-07 18:01:08 -07:00
< td class = "paramtype" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a >   < / td >
2019-06-13 15:36:14 +02:00
< td class = "paramname" > < em > tail< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2019-08-07 18:01:08 -07:00
< td class = "paramtype" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a >   < / td >
2019-06-13 15:36:14 +02:00
< td class = "paramname" > < em > head< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "connectivity_8h_source.html#l00083" > 83< / a > of file < a class = "el" href = "connectivity_8h_source.html" > connectivity.h< / a > .< / p >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "a0f653082d74e1d7e9d8e97be437ba036" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a0f653082d74e1d7e9d8e97be437ba036" > ◆ < / a > < / span > AddGraph()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > void AddGraph < / td >
2019-06-13 15:36:14 +02:00
< td > (< / td >
< td class = "paramtype" > const Graph &   < / td >
< td class = "paramname" > < em > graph< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "connectivity_8h_source.html#l00095" > 95< / a > of file < a class = "el" href = "connectivity_8h_source.html" > connectivity.h< / a > .< / p >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "aeaa04a98ce83a11cc8260f15b7ceb6ce" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#aeaa04a98ce83a11cc8260f15b7ceb6ce" > ◆ < / a > < / span > CompressPath()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a > CompressPath < / td >
2019-06-13 15:36:14 +02:00
< td > (< / td >
2019-08-07 18:01:08 -07:00
< td class = "paramtype" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a >   < / td >
2019-06-13 15:36:14 +02:00
< td class = "paramname" > < em > node< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "connectivity_8h_source.html#l00106" > 106< / a > of file < a class = "el" href = "connectivity_8h_source.html" > connectivity.h< / a > .< / p >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "a874a54f45623ba735a5634b1ea9289ea" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a874a54f45623ba735a5634b1ea9289ea" > ◆ < / a > < / span > GetClassRepresentative()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a > GetClassRepresentative < / td >
2019-06-13 15:36:14 +02:00
< td > (< / td >
2019-08-07 18:01:08 -07:00
< td class = "paramtype" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a >   < / td >
2019-06-13 15:36:14 +02:00
< td class = "paramname" > < em > node< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "connectivity_8h_source.html#l00123" > 123< / a > of file < a class = "el" href = "connectivity_8h_source.html" > connectivity.h< / a > .< / p >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "ad93186658fbb95624b55f85af74f8ea5" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#ad93186658fbb95624b55f85af74f8ea5" > ◆ < / a > < / span > GetNumberOfConnectedComponents()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a > GetNumberOfConnectedComponents < / td >
2019-06-13 15:36:14 +02:00
< td > (< / td >
< td class = "paramname" > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "connectivity_8h_source.html#l00129" > 129< / a > of file < a class = "el" href = "connectivity_8h_source.html" > connectivity.h< / a > .< / p >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "a8247e505912b0c7d2309f3f9eaa74080" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a8247e505912b0c7d2309f3f9eaa74080" > ◆ < / a > < / span > Init()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > void Init < / td >
2019-06-13 15:36:14 +02:00
< td > (< / td >
2019-08-07 18:01:08 -07:00
< td class = "paramtype" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a >   < / td >
2019-06-13 15:36:14 +02:00
< td class = "paramname" > < em > num_nodes< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "connectivity_8h_source.html#l00072" > 72< / a > of file < a class = "el" href = "connectivity_8h_source.html" > connectivity.h< / a > .< / p >
< / div >
< / div >
2019-08-07 18:01:08 -07:00
< a id = "a047f863116aabfa88d8eeeebda5de760" > < / a >
< h2 class = "memtitle" > < span class = "permalink" > < a href = "#a047f863116aabfa88d8eeeebda5de760" > ◆ < / a > < / span > MergeClasses()< / h2 >
2019-06-13 15:36:14 +02:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
2019-08-07 18:01:08 -07:00
< td class = "memname" > void MergeClasses < / td >
2019-06-13 15:36:14 +02:00
< td > (< / td >
2019-08-07 18:01:08 -07:00
< td class = "paramtype" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a >   < / td >
2019-06-13 15:36:14 +02:00
< td class = "paramname" > < em > node1< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2019-08-07 18:01:08 -07:00
< td class = "paramtype" > < a class = "el" href = "namespaceoperations__research.html#a272bcc4d6ee0e87a7fc430a5cb13c582" > NodeIndex< / a >   < / td >
2019-06-13 15:36:14 +02:00
< td class = "paramname" > < em > node2< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > inline< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p class = "definition" > Definition at line < a class = "el" href = "connectivity_8h_source.html#l00138" > 138< / a > of file < a class = "el" href = "connectivity_8h_source.html" > connectivity.h< / a > .< / p >
< / div >
< / div >
< hr / > The documentation for this class was generated from the following file:< ul >
< li > < a class = "el" href = "connectivity_8h_source.html" > connectivity.h< / a > < / li >
< / ul >
< / div > <!-- contents -->
2019-08-07 18:01:08 -07:00
< / div >
2019-06-13 15:36:14 +02:00
< / div >
< div id = "footer-container" >
< div id = "footer" >
< / div >
< / div >
< / body >
< / html >