Stay organized with collections
Save and categorize content based on your preferences.
C++ Reference: io
Note: This documentation is automatically generated.
A collections of i/o utilities for the Graph classes in ./graph.h.
Function |
Type |
Arguments |
Comments |
GraphToString | Return type: std::string Arguments: const Graph& graph, GraphToStringFormat format |
GraphToString | Return type: std::string Arguments: const Graph& graph, GraphToStringFormat format |
WriteGraphToFile | Return type: absl::Status Arguments: const Graph& graph, const std::string& filename, bool directed, const std::vector<int>& num_nodes_with_color |
WriteGraphToFile | Return type: absl::Status Arguments: const Graph& graph, const std::string& filename, bool directed, const std::vector<int>& num_nodes_with_color |
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-08-06 UTC.
[null,null,["Last updated 2024-08-06 UTC."],[],["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,[]]