V
- the graph vertex typeE
- the graph edge typeDIMACSExporter
instead.@Deprecated public class DIMACSExporter<V,E> extends Object implements GraphExporter<V,E>
For a description of the format see
http://dimacs.rutgers.edu/Challenges. Note that there are a lot of different formats based on
each different challenge, see DIMACSFormat
for the supported formats. The exporter uses
the DIMACSFormat.MAX_CLIQUE
by default.
Modifier and Type | Class and Description |
---|---|
static class |
DIMACSExporter.Parameter
Deprecated.
Use
DIMACSExporter.Parameter instead. |
Modifier and Type | Field and Description |
---|---|
static DIMACSFormat |
DEFAULT_DIMACS_FORMAT
Deprecated.
The default format used by the exporter.
|
Constructor and Description |
---|
DIMACSExporter()
Deprecated.
Constructs a new exporter.
|
DIMACSExporter(ComponentNameProvider<V> vertexIDProvider)
Deprecated.
Constructs a new exporter with a given vertex ID provider.
|
DIMACSExporter(ComponentNameProvider<V> vertexIDProvider,
DIMACSFormat format)
Deprecated.
Constructs a new exporter with a given vertex ID provider.
|
Modifier and Type | Method and Description |
---|---|
void |
exportGraph(Graph<V,E> g,
Writer writer)
Deprecated.
Export a graph
|
DIMACSFormat |
getFormat()
Deprecated.
Get the format of the exporter
|
boolean |
isParameter(DIMACSExporter.Parameter p)
Deprecated.
Return if a particular parameter of the exporter is enabled
|
void |
setFormat(DIMACSFormat format)
Deprecated.
Set the format of the exporter
|
void |
setParameter(DIMACSExporter.Parameter p,
boolean value)
Deprecated.
Set the value of a parameter of the exporter
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportGraph, exportGraph
public static final DIMACSFormat DEFAULT_DIMACS_FORMAT
public DIMACSExporter()
public DIMACSExporter(ComponentNameProvider<V> vertexIDProvider)
vertexIDProvider
- for generating vertex IDs. Must not be null.public DIMACSExporter(ComponentNameProvider<V> vertexIDProvider, DIMACSFormat format)
vertexIDProvider
- for generating vertex IDs. Must not be null.format
- the format to usepublic void exportGraph(Graph<V,E> g, Writer writer)
exportGraph
in interface GraphExporter<V,E>
g
- the graph to exportwriter
- the output writerpublic boolean isParameter(DIMACSExporter.Parameter p)
p
- the parametertrue
if the parameter is set, false
otherwisepublic void setParameter(DIMACSExporter.Parameter p, boolean value)
p
- the parametervalue
- the value to setpublic DIMACSFormat getFormat()
public void setFormat(DIMACSFormat format)
format
- the format to useCopyright © 2017. All rights reserved.