Generated on: Thu Mar 29 07:46:58 PDT 2012 for custom file set | ||
|
||
#include <graph_export.h>
Public Types | |
enum | GraphFormat { DOT_FORMAT, GML_FORMAT } |
Supported graph formats. More... | |
Public Member Functions | |
virtual | ~GraphExporter () |
virtual void | WriteHeader (const string &name)=0 |
Write the header of the graph file. | |
virtual void | WriteFooter ()=0 |
Write the footer of the graph file. | |
virtual void | WriteNode (const string &name, const string &label, const string &shape, const string &color)=0 |
Write node in GML or DOT format. | |
virtual void | WriteLink (const string &source, const string &destination, const string &label)=0 |
Adds one link in the generated graph. | |
Static Public Member Functions | |
static GraphExporter * | MakeFileExporter (File *const file, GraphExporter::GraphFormat format) |
Creates a graph exporter that will write to file with a given format. |
This class will allow the creation of a graph representation. It supports different formats (see GraphFormat).
Definition at line 30 of file graph_export.h.
operations_research::GraphExporter::~GraphExporter | ( | ) | [virtual] |
Definition at line 23 of file graph_export.cc.
virtual void operations_research::GraphExporter::WriteHeader | ( | const string & | name | ) | [pure virtual] |
Write the header of the graph file.
virtual void operations_research::GraphExporter::WriteFooter | ( | ) | [pure virtual] |
Write the footer of the graph file.
virtual void operations_research::GraphExporter::WriteNode | ( | const string & | name, | |
const string & | label, | |||
const string & | shape, | |||
const string & | color | |||
) | [pure virtual] |
Write node in GML or DOT format.
virtual void operations_research::GraphExporter::WriteLink | ( | const string & | source, | |
const string & | destination, | |||
const string & | label | |||
) | [pure virtual] |
Adds one link in the generated graph.
GraphExporter * operations_research::GraphExporter::MakeFileExporter | ( | File *const | file, | |
GraphExporter::GraphFormat | format | |||
) | [static] |
Creates a graph exporter that will write to file with a given format.
namespace
Definition at line 173 of file graph_export.cc.