C++ Reference: io

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

ReadGraphFile

Return type: util::StatusOr<Graph*>

Arguments: const std::string& filename, bool directed, std::vector<int>* num_nodes_with_color_or_null

ReadGraphFile

Return type: util::StatusOr<Graph*>

Arguments: const std::string& filename, bool directed, std::vector<int>* num_nodes_with_color_or_null

WriteGraphToFile

Return type: util::Status

Arguments: const Graph& graph, const std::string& filename, bool directed, const std::vector<int>& num_nodes_with_color

WriteGraphToFile

Return type: util::Status

Arguments: const Graph& graph, const std::string& filename, bool directed, const std::vector<int>& num_nodes_with_color