VTK
|
reads vtkGraph data from a DIMACS formatted file More...
#include <vtkDIMACSGraphReader.h>
reads vtkGraph data from a DIMACS formatted file
vtkDIMACSGraphReader is a source object that reads vtkGraph data files from a DIMACS format.
The reader has special handlers for max-flow and graph coloring problems, which are specified in the problem line as 'max' and 'edge' respectively. Other graphs are treated as generic DIMACS files.
DIMACS formatted files consist of lines in which the first character in in column 0 specifies the type of the line.
Generic DIMACS files have the following line types:
DIMACS graphs are undirected and nodes are numbered 1..n
See webpage for additional formatting details.
http://www.dis.uniroma1.it/~challenge9/format.shtml
Definition at line 68 of file vtkDIMACSGraphReader.h.
Reimplemented from vtkGraphAlgorithm.
Definition at line 74 of file vtkDIMACSGraphReader.h.
vtkDIMACSGraphReader::vtkDIMACSGraphReader | ( | ) | [protected] |
vtkDIMACSGraphReader::~vtkDIMACSGraphReader | ( | ) | [protected] |
static vtkDIMACSGraphReader* vtkDIMACSGraphReader::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkGraphAlgorithm.
static int vtkDIMACSGraphReader::IsTypeOf | ( | const char * | name | ) | [static] |
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkGraphAlgorithm.
virtual int vtkDIMACSGraphReader::IsA | ( | const char * | name | ) | [virtual] |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkGraphAlgorithm.
static vtkDIMACSGraphReader* vtkDIMACSGraphReader::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkGraphAlgorithm.
virtual vtkObjectBase* vtkDIMACSGraphReader::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkGraphAlgorithm.
Reimplemented from vtkGraphAlgorithm.
void vtkDIMACSGraphReader::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) | [virtual] |
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from vtkGraphAlgorithm.
virtual char* vtkDIMACSGraphReader::GetFileName | ( | ) | [virtual] |
The DIMACS file name.
virtual void vtkDIMACSGraphReader::SetFileName | ( | const char * | ) | [virtual] |
The DIMACS file name.
virtual char* vtkDIMACSGraphReader::GetVertexAttributeArrayName | ( | ) | [virtual] |
Vertex attribute array name
virtual void vtkDIMACSGraphReader::SetVertexAttributeArrayName | ( | const char * | ) | [virtual] |
Vertex attribute array name
virtual char* vtkDIMACSGraphReader::GetEdgeAttributeArrayName | ( | ) | [virtual] |
Edge attribute array name
virtual void vtkDIMACSGraphReader::SetEdgeAttributeArrayName | ( | const char * | ) | [virtual] |
Edge attribute array name
virtual int vtkDIMACSGraphReader::RequestData | ( | vtkInformation * | request, |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkGraphAlgorithm.
int vtkDIMACSGraphReader::buildGenericGraph | ( | vtkGraph * | output, |
vtkStdString & | defaultVertexAttrArrayName, | ||
vtkStdString & | defaultEdgeAttrArrayName | ||
) | [protected] |
int vtkDIMACSGraphReader::buildColoringGraph | ( | vtkGraph * | output | ) | [protected] |
int vtkDIMACSGraphReader::buildMaxflowGraph | ( | vtkGraph * | output | ) | [protected] |
virtual int vtkDIMACSGraphReader::RequestDataObject | ( | vtkInformation * | , |
vtkInformationVector ** | inputVector, | ||
vtkInformationVector * | outputVector | ||
) | [protected, virtual] |
Creates directed or undirected output based on Directed flag.
Reimplemented from vtkGraphAlgorithm.
int vtkDIMACSGraphReader::ReadGraphMetaData | ( | ) | [protected] |