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 >
2019-07-15 17:42:24 -07:00
< li class = "current" > < a href = "files.html" > < span > Files< / span > < / a > < / li >
2019-06-13 15:36:14 +02:00
< / 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('io_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 = "#namespaces" > Namespaces< / a > |
< a href = "#enum-members" > Enumerations< / a > |
< a href = "#func-members" > Functions< / a > |
< a href = "#var-members" > Variables< / a > < / div >
< div class = "headertitle" >
< div class = "title" > io.h File Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
2019-07-15 17:42:24 -07:00
2019-06-13 15:36:14 +02:00
< p > < a href = "io_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 = "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 = "enum-members" > < / a >
Enumerations< / h2 > < / td > < / tr >
< tr class = "memitem:ae705e1342dacc10a13fb3f11f91d0696" > < td class = "memItemLeft" align = "right" valign = "top" > enum   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceutil.html#ae705e1342dacc10a13fb3f11f91d0696" > util::GraphToStringFormat< / a > { < a class = "el" href = "namespaceutil.html#ae705e1342dacc10a13fb3f11f91d0696acac9245da1bf36d1d9382dc579e1a4fd" > util::PRINT_GRAPH_ARCS< / a > ,
< a class = "el" href = "namespaceutil.html#ae705e1342dacc10a13fb3f11f91d0696aaed5759e3b6e3a8592c9a21e0048b565" > util::PRINT_GRAPH_ADJACENCY_LISTS< / a > ,
< a class = "el" href = "namespaceutil.html#ae705e1342dacc10a13fb3f11f91d0696a454bb1ede69e280a1e4959acb82748ef" > util::PRINT_GRAPH_ADJACENCY_LISTS_SORTED< / a >
}< / td > < / tr >
< tr class = "memdesc:ae705e1342dacc10a13fb3f11f91d0696" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns a std::string representation of a graph. < a href = "namespaceutil.html#ae705e1342dacc10a13fb3f11f91d0696" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:ae705e1342dacc10a13fb3f11f91d0696" > < 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:affed79554a202aaa8bda5b5e98c3a6b2" > < td class = "memTemplParams" colspan = "2" > template< class Graph > < / td > < / tr >
< tr class = "memitem:affed79554a202aaa8bda5b5e98c3a6b2" > < td class = "memTemplItemLeft" align = "right" valign = "top" > std::string  < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "namespaceutil.html#affed79554a202aaa8bda5b5e98c3a6b2" > util::GraphToString< / a > (const Graph & graph, GraphToStringFormat format)< / td > < / tr >
< tr class = "memdesc:affed79554a202aaa8bda5b5e98c3a6b2" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Implementations of the templated methods. < a href = "namespaceutil.html#affed79554a202aaa8bda5b5e98c3a6b2" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:affed79554a202aaa8bda5b5e98c3a6b2" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a86199e4832dd5c1d61baa53bfecb7b6d" > < td class = "memItemLeft" align = "right" valign = "top" > false  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceutil.html#a86199e4832dd5c1d61baa53bfecb7b6d" > util::ValueOrDie< / a > ())< / td > < / tr >
< tr class = "memdesc:a86199e4832dd5c1d61baa53bfecb7b6d" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Read a graph file in the simple ".g" format: the file should be a text file containing only space-separated integers, whose first line is: < num nodes> =""> < num edges> =""> [< num_colors> < index of first node with color #1> < index of first node with color #2> ...] and whose subsequent lines represent edges if "directed" is false, or arcs if "directed" is true: < node1> < node2> . < a href = "namespaceutil.html#a86199e4832dd5c1d61baa53bfecb7b6d" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a86199e4832dd5c1d61baa53bfecb7b6d" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a0a640b5d8a0ba7deaba9afbd4f3ca438" > < td class = "memItemLeft" align = "right" valign = "top" > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceutil.html#a0a640b5d8a0ba7deaba9afbd4f3ca438" > util::if< / a > (!error_or_graph.ok())< / td > < / tr >
< tr class = "separator:a0a640b5d8a0ba7deaba9afbd4f3ca438" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a9c5c6763e52cd1465a3e1a3ab2437e37" > < td class = "memTemplParams" colspan = "2" > template< class Graph > < / td > < / tr >
< tr class = "memitem:a9c5c6763e52cd1465a3e1a3ab2437e37" > < td class = "memTemplItemLeft" align = "right" valign = "top" > ***util::StatusOr< Graph * >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "namespaceutil.html#a9c5c6763e52cd1465a3e1a3ab2437e37" > util::ReadGraphFile< / a > (const std::string & filename, bool directed, std::vector< int > *num_nodes_with_color_or_null)< / td > < / tr >
< tr class = "separator:a9c5c6763e52cd1465a3e1a3ab2437e37" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6600986f328a49c9485aa03fb6c82946" > < td class = "memTemplParams" colspan = "2" > template< class Graph > < / td > < / tr >
< tr class = "memitem:a6600986f328a49c9485aa03fb6c82946" > < td class = "memTemplItemLeft" align = "right" valign = "top" > util::Status  < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "namespaceutil.html#a6600986f328a49c9485aa03fb6c82946" > util::WriteGraphToFile< / a > (const Graph & graph, const std::string & filename, bool directed, const std::vector< int > & num_nodes_with_color)< / td > < / tr >
< tr class = "memdesc:a6600986f328a49c9485aa03fb6c82946" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Writes a graph to the ".g" file format described above. < a href = "namespaceutil.html#a6600986f328a49c9485aa03fb6c82946" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a6600986f328a49c9485aa03fb6c82946" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aeec5b66be4fd6b3021e6eb08b3045a0e" > < td class = "memTemplParams" colspan = "2" > template< class Graph > < / td > < / tr >
< tr class = "memitem:aeec5b66be4fd6b3021e6eb08b3045a0e" > < td class = "memTemplItemLeft" align = "right" valign = "top" > util::StatusOr< Graph * >   < / td > < td class = "memTemplItemRight" valign = "bottom" > < a class = "el" href = "namespaceutil.html#aeec5b66be4fd6b3021e6eb08b3045a0e" > util::ReadGraphFile< / a > (const std::string & filename, bool directed, std::vector< int > *num_nodes_with_color_or_null)< / td > < / tr >
< tr class = "separator:aeec5b66be4fd6b3021e6eb08b3045a0e" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "var-members" > < / a >
Variables< / h2 > < / td > < / tr >
< tr class = "memitem:a123e77d101e4aeb54a2b9e7d9612ad1b" > < td class = "memItemLeft" align = "right" valign = "top" > ***util::StatusOr< MyGraph * >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceutil.html#a123e77d101e4aeb54a2b9e7d9612ad1b" > util::error_or_graph< / a > < / td > < / tr >
< tr class = "memdesc:a123e77d101e4aeb54a2b9e7d9612ad1b" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > < More complicated error handling. < a href = "namespaceutil.html#a123e77d101e4aeb54a2b9e7d9612ad1b" > More...< / a > < br / > < / td > < / tr >
< tr class = "separator:a123e77d101e4aeb54a2b9e7d9612ad1b" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a99d2b83baf3f908e76fb2161b1c73322" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "namespaceutil.html#a99d2b83baf3f908e76fb2161b1c73322" > util::else< / a > < / td > < / tr >
< tr class = "separator:a99d2b83baf3f908e76fb2161b1c73322" > < 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 >