Google OR-Tools v9.11
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
io.h File Reference
#include <algorithm>
#include <cstdint>
#include <memory>
#include <numeric>
#include <string>
#include <vector>
#include "absl/status/status.h"
#include "absl/status/statusor.h"
#include "absl/strings/numbers.h"
#include "absl/strings/str_cat.h"
#include "absl/strings/str_format.h"
#include "absl/strings/str_join.h"
#include "absl/strings/str_split.h"
#include "absl/types/span.h"
#include "ortools/base/numbers.h"
#include "ortools/graph/graph.h"
#include "ortools/util/filelineiter.h"

Go to the source code of this file.

Namespaces

namespace  util
 A collections of i/o utilities for the Graph classes in ./graph.h.
 

Enumerations

enum  util::GraphToStringFormat { util::PRINT_GRAPH_ARCS , util::PRINT_GRAPH_ADJACENCY_LISTS , util::PRINT_GRAPH_ADJACENCY_LISTS_SORTED }
 Returns a string representation of a graph. More...
 

Functions

template<class Graph >
std::string util::GraphToString (const Graph &graph, GraphToStringFormat format)
 Implementations of the templated methods.
 
template<class Graph >
absl::Status util::WriteGraphToFile (const Graph &graph, const std::string &filename, bool directed, absl::Span< const int > num_nodes_with_color)