C++ Reference
C++ Reference: Graph
io.h File Reference
Go to the source code of this file.
Namespaces | |
util | |
Enumerations | |
enum | GraphToStringFormat { PRINT_GRAPH_ARCS, PRINT_GRAPH_ADJACENCY_LISTS, PRINT_GRAPH_ADJACENCY_LISTS_SORTED } |
Functions | |
template<class Graph > | |
std::string | GraphToString (const Graph &graph, GraphToStringFormat format) |
template<class Graph > | |
absl::StatusOr< Graph * > | ReadGraphFile (const std::string &filename, bool directed, std::vector< int > *num_nodes_with_color_or_null) |
template<class Graph > | |
absl::Status | WriteGraphToFile (const Graph &graph, const std::string &filename, bool directed, const std::vector< int > &num_nodes_with_color) |