Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
#include "cpp/parse_dimacs_assignment.h"
#include <algorithm>
#include <cstdio>
#include <cstring>
#include <string>
#include "base/callback.h"
#include "base/commandlineflags.h"
#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "graph/ebert_graph.h"
#include "graph/linear_assignment.h"
Go to the source code of this file.
Namespaces | |
namespace | operations_research |
Classes | |
struct | operations_research::ParserState |
Functions | |
DEFINE_bool (assignment_maximize_cost, false,"Negate costs so a max-cost assignment is found.") | |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. | |
DEFINE_bool (assignment_optimize_layout, true,"Optimize graph layout for speed.") | |
static void | operations_research::ParseProblemLine (const char *line, ParserState *state, ForwardStarGraph **graph) |
static void | operations_research::ParseNodeLine (const char *line, ParserState *state) |
static void | operations_research::ParseArcLine (const char *line, ParserState *state, ForwardStarGraph *graph, LinearSumAssignment< ForwardStarGraph > **assignment) |
static void | operations_research::ParseOneLine (ParserState *state, ForwardStarGraph **graph, LinearSumAssignment< ForwardStarGraph > **assignment, char *line) |
Parameters out of style-guide order because this function is used as a callback that varies the input line. | |
void | operations_research::ParseFileByLines (const string &filename, Callback1< char * > *line_parser) |
LinearSumAssignment < ForwardStarGraph > * | operations_research::ParseDimacsAssignment (const string &filename, string *error_message, ForwardStarGraph **graph_handle) |
Reads an assignment problem description from the given file in DIMACS format and returns a LinearSumAssignment object representing the problem description. |
DEFINE_bool | ( | assignment_optimize_layout | , | |
true | , | |||
"Optimize graph layout for speed." | ||||
) |
DEFINE_bool | ( | assignment_maximize_cost | , | |
false | , | |||
"Negate costs so a max-cost assignment is found." | ||||
) |
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.