[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-08-06 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eio\u003c/code\u003e utilities provide functions for converting graph data structures into string representations and writing them to files.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eGraphToString\u003c/code\u003e functions allow you to obtain a string representation of a graph in different formats.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eWriteGraphToFile\u003c/code\u003e functions enable saving graph data to a file, with options for specifying directedness and node coloring information.\u003c/p\u003e\n"]]],["The core content details i/o utilities for C++ graph classes. Key actions include converting a graph to a string using `GraphToString`, which accepts a graph and format as arguments. Another action includes writing a graph to a file, handled by `WriteGraphToFile`. This function takes a graph, filename, a boolean indicating if it is a directed graph, and a vector of integers representing node colors. Each of the listed function has two overloads.\n"],null,["# io\n\nC++ Reference: io\n=================\n\n\nNote: This documentation is automatically generated.\nA collections of i/o utilities for the Graph classes in ./graph.h. \n\n| Function | Type | Arguments | Comments |\n|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------|----------|\n| [`GraphToString`](https://github.com/google/or-tools/blob/v9.4/ortools/graph/io.h#L50) | Return type: `std::string ` Arguments: `const Graph& graph, GraphToStringFormat format` \u003cbr /\u003e |\n| [`GraphToString`](https://github.com/google/or-tools/blob/v9.4/ortools/graph/io.h#L72) | Return type: `std::string ` Arguments: `const Graph& graph, GraphToStringFormat format` \u003cbr /\u003e |\n| [`WriteGraphToFile`](https://github.com/google/or-tools/blob/v9.4/ortools/graph/io.h#L65) | Return type: `absl::Status ` Arguments: `const Graph& graph, const std::string& filename, bool directed, const std::vector\u003cint\u003e& num_nodes_with_color` \u003cbr /\u003e |\n| [`WriteGraphToFile`](https://github.com/google/or-tools/blob/v9.4/ortools/graph/io.h#L97) | Return type: `absl::Status ` Arguments: `const Graph& graph, const std::string& filename, bool directed, const std::vector\u003cint\u003e& num_nodes_with_color` \u003cbr /\u003e |"]]