org.jgrapht.ext
Class DIMACSExporter<V,E>
- java.lang.Object
-
- org.jgrapht.ext.DIMACSExporter<V,E>
-
- Type Parameters:
V- the graph vertex typeE- the graph edge type
- All Implemented Interfaces:
- GraphExporter<V,E>
Deprecated.Useorg.jgrapht.io.DIMACSExporterinstead.
@Deprecated public class DIMACSExporter<V,E> extends java.lang.Object implements GraphExporter<V,E>
Exports a graph into DIMACS format.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
DIMACSFormatfor the supported formats. The exporter uses theDIMACSFormat.MAX_CLIQUEby default.- Since:
- January 2017
-
-
Nested Class Summary
Nested Classes Modifier and Type Class and Description static classDIMACSExporter.ParameterDeprecated.Useorg.jgrapht.io.DIMACSExporter.Parameterinstead.
-
Field Summary
Fields Modifier and Type Field and Description static DIMACSFormatDEFAULT_DIMACS_FORMATDeprecated.The default format used by the exporter.
-
Constructor Summary
Constructors 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method and Description voidexportGraph(Graph<V,E> g, java.io.Writer writer)Deprecated.Export a graphDIMACSFormatgetFormat()Deprecated.Get the format of the exporterbooleanisParameter(DIMACSExporter.Parameter p)Deprecated.Return if a particular parameter of the exporter is enabledvoidsetFormat(DIMACSFormat format)Deprecated.Set the format of the exportervoidsetParameter(DIMACSExporter.Parameter p, boolean value)Deprecated.Set the value of a parameter of the exporter-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jgrapht.ext.GraphExporter
exportGraph, exportGraph
-
-
-
-
Field Detail
-
DEFAULT_DIMACS_FORMAT
public static final DIMACSFormat DEFAULT_DIMACS_FORMAT
Deprecated.The default format used by the exporter.
-
-
Constructor Detail
-
DIMACSExporter
public DIMACSExporter()
Deprecated.Constructs a new exporter.
-
DIMACSExporter
public DIMACSExporter(ComponentNameProvider<V> vertexIDProvider)
Deprecated.Constructs a new exporter with a given vertex ID provider.- Parameters:
vertexIDProvider- for generating vertex IDs. Must not be null.
-
DIMACSExporter
public DIMACSExporter(ComponentNameProvider<V> vertexIDProvider, DIMACSFormat format)
Deprecated.Constructs a new exporter with a given vertex ID provider.- Parameters:
vertexIDProvider- for generating vertex IDs. Must not be null.format- the format to use
-
-
Method Detail
-
exportGraph
public void exportGraph(Graph<V,E> g, java.io.Writer writer)
Deprecated.Export a graph- Specified by:
exportGraphin interfaceGraphExporter<V,E>- Parameters:
g- the graph to exportwriter- the output writer
-
isParameter
public boolean isParameter(DIMACSExporter.Parameter p)
Deprecated.Return if a particular parameter of the exporter is enabled- Parameters:
p- the parameter- Returns:
trueif the parameter is set,falseotherwise
-
setParameter
public void setParameter(DIMACSExporter.Parameter p, boolean value)
Deprecated.Set the value of a parameter of the exporter- Parameters:
p- the parametervalue- the value to set
-
getFormat
public DIMACSFormat getFormat()
Deprecated.Get the format of the exporter- Returns:
- the format of the exporter
-
setFormat
public void setFormat(DIMACSFormat format)
Deprecated.Set the format of the exporter- Parameters:
format- the format to use
-
-
DataMelt 3.0 © DataMelt by jWork.ORG